backbone-skull
Version:
Skull sits on top of Backbone and protects your application's brains.
22 lines (18 loc) • 486 B
JavaScript
define(
[
'Skull',
'StorageSyncer',
'underscore'
],
function (Skull, StorageSyncer, _) {
'use strict';
var ModelAbstract = Skull.Model.extend({
__registry__: function () {
var reg = this._parentResult(ModelAbstract, '__registry__');
reg.syncer = ['syncer', {name: _.result(this, 'resource')}];
return reg;
}
});
return ModelAbstract;
}
);