UNPKG

backbone-skull

Version:

Skull sits on top of Backbone and protects your application's brains.

22 lines (18 loc) 506 B
define( [ 'Skull', 'StorageSyncer', 'underscore' ], function (Skull, StorageSyncer, _) { 'use strict'; var CollectionAbstract = Skull.Collection.extend({ __registry__: function () { var reg = this._parentResult(CollectionAbstract, '__registry__'); reg.syncer = ['syncer', {name: _.result(this, 'resource')}]; return reg; } }); return CollectionAbstract; } );