demos/animated-game/js/backbone.js
function(options) {
      options = options ? _.clone(options) : {};
      if (options.parse === void 0) options.parse = true;
      var model = this;
      var success = options.success;
      options.success = function(resp) {
        if (!model.set(model.parse(resp, options), options)) return false;
        if (success) success(model, resp, options);
        model.trigger('sync', model, resp, options);
      };
      wrapError(this, options);
      return this.sync('read', this, options);
    }
function(options) {
      options = options ? _.clone(options) : {};
      if (options.parse === void 0) options.parse = true;
      var model = this;
      var success = options.success;
      options.success = function(resp) {
        if (!model.set(model.parse(resp, options), options)) return false;
        if (success) success(model, resp, options);
        model.trigger('sync', model, resp, options);
      };
      wrapError(this, options);
      return this.sync('read', this, options);
    }
function ( options ) { options = options ? _ . clone ( options ) : { } ; if ( options . parse === void 0 ) options . parse = true ; var model = this ; var success = options . success ; options . success = function ( resp ) { if ( ! model . set ( model . parse ( resp , options ) , options ) ) return false ; if ( success ) success ( model , resp , options ) ; model . trigger ( 'sync' , model , resp , options ) ; } ; wrapError ( this , options ) ; return this . sync ( 'read' , this , options ) ; }
Fetch the model from the server. If the server's representation of the model differs from its current attributes, they will be overridden, triggering a `"change"` event.
Fetch the model from the server . If the server s representation of the model differs from its current attributes they will be overridden triggering a change event .