jasonkneen / RESTe

A simple JavaScript REST / API helper for Titanium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Which Backbone versions work with RESTe?

icecandy opened this issue · comments

Just a query, but what versions of Backbone is RESTe designed to work with?
I only ask because use of Backbone in Alloy has a compatibility issue when using Backbone version 1.1.2 where one has to modify the model definition:

extendCollection: function(Collection)
{
_.extend(Collection.prototype,
{
// extended functions and properties go here

        // For Backbone v1.1.2, uncomment the following to override the
        // fetch method to account for a breaking change in Backbone.
        fetch: function(_options)
        {
            _options = _options ? _.clone(_options) :
            {};
            _options.reset = true;
            return Backbone.Collection.prototype.fetch.call(this, _options);
        },

.........

And specify the version in config.json:

"backbone": "1.1.2"