lib/resource/mixins/SaveableMixin.js
function saveResource(callback) {
  var self = this;
  self._applyCustomDataUpdatesIfNecessary(function () {
    self.dataStore.saveResource(self, callback);
  });
}
function saveResource(callback) {
  var self = this;
  self._applyCustomDataUpdatesIfNecessary(function () {
    self.dataStore.saveResource(self, callback);
  });
}
function saveResource ( callback ) { var self = this ; self . _applyCustomDataUpdatesIfNecessary ( function ( ) { self . dataStore . saveResource ( self , callback ) ; } ) ; }
Save changes to this resource.

@param {Function} callback
The function to call when the save operation is complete. Will be called
with the parameters (err, updatedResource).
Save changes to this resource .