Sha256: 8f7944e0131d5ebe5bb2c5804d73892ff5ff2035de84b420a6a8ec37fe54b4c8
Contents?: true
Size: 586 Bytes
Versions: 17
Compression:
Stored size: 586 Bytes
Contents
pageflow.externalLinks.SitesCollection = Backbone.Collection.extend({ model: pageflow.externalLinks.Site, url: function() { return '/external_links/entries/' + pageflow.entry.get('id') + '/sites'; }, getByPermaId: function(permaId) { return this.findWhere({perma_id: permaId}); }, ensureFetched: function(callback) { var collection = this; this.fetchedPromise = this.fetchedPromise || new $.Deferred(function(deferred) { collection.once('sync', deferred.resolve); collection.fetch(); }).promise(); return this.fetchedPromise; } });
Version data entries
17 entries across 17 versions & 1 rubygems