Sha256: 4165658f531ba1ece1df47ad2d758f2d6e1d026ba27a5b830b66ee71aea29aad
Contents?: true
Size: 355 Bytes
Versions: 64
Compression:
Stored size: 355 Bytes
Contents
pageflow.addAndReturnModel = { // Backbone's add does not return the added model. push returns the // model but does not trigger sort. addAndReturnModel: function(model, options) { model = this._prepareModel(model, options); this.add(model, options); return model; } }; Cocktail.mixin(Backbone.Collection, pageflow.addAndReturnModel);
Version data entries
64 entries across 64 versions & 1 rubygems