build/knockout.app.js
function(_options){
      var self = this, //model
          options = _options || {},
          success = options.success; //custom success function passed in _options

      options.success = function(data){
        delete data[self.idAttribute];
        var defaults = Utils.cloneObjKnockout(self.defaults);
        self.attributes = Utils.extendObjKnockout(defaults, data);
        if(success) success(self, data);
      };

      return this.sync.call(this, 'fetch', this, options);
    }
function(_options){
      var self = this, //model
          options = _options || {},
          success = options.success; //custom success function passed in _options

      options.success = function(data){
        delete data[self.idAttribute];
        var defaults = Utils.cloneObjKnockout(self.defaults);
        self.attributes = Utils.extendObjKnockout(defaults, data);
        if(success) success(self, data);
      };

      return this.sync.call(this, 'fetch', this, options);
    }
function ( _options ) { var self = this , //model options = _options || { } , success = options . success ; //custom success function passed in _options options . success = function ( data ) { delete data [ self . idAttribute ] ; var defaults = Utils . cloneObjKnockout ( self . defaults ) ; self . attributes = Utils . extendObjKnockout ( defaults , data ) ; if ( success ) success ( self , data ) ; } ; return this . sync . call ( this , 'fetch' , this , options ) ; }
Fetch the model on the server and replace its attributes with the one fetched Options for the sync method can be passed as an object
Fetch the model on the server and replace its attributes with the one fetched Options for the sync method can be passed as an object