Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1148

Update model template code to include Backbone 1.1.2 support code

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Alloy 1.6.0
    • Fix Version/s: Alloy 1.6.0
    • Component/s: Samples & Templates
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      2014 Sprint 19 Alloy, 2014 Sprint 21 Alloy

      Description

      Per ALOY-1074, if a developer uses Backbone 1.1.2 (rather than the default 0.9.2), he/she must extend the collection definition to account for a breaking change in backbone.

      Add this to the modelcode.js template file to provide guidance to developers attempting to use this feature.

      // For Backbone v1.1.2, uncomment this to override the fetch method
      /*
      fetch: function(options) {
      	options = options ? _.clone(options) : {};
      	options.reset = true;
      	return Backbone.Collection.prototype.fetch.call(this, options);
      }
      */
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skypanther Tim Poulsen
                Reporter:
                skypanther Tim Poulsen
                Reviewer:
                Feon Sua Xin Miao
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration