Sha256: 0ee30d7ef16749a4585b787c6844d2d32a3546c4a675dfc3f5e95a490753b7a3
Contents?: true
Size: 648 Bytes
Versions: 22
Compression:
Stored size: 648 Bytes
Contents
pageflow.linkmapPage.PageLinksCollection = pageflow.SubsetCollection.extend({ constructor: function(options) { this.areas = options.areas; pageflow.SubsetCollection.prototype.constructor.call(this, { parent: options.areas, filter: function(area) { return area.get('target_type') === 'page'; } }); }, canAddLink: function() { return this.areas.canAddLink(); }, addLink: function(targetPageId) { this.areas.addLink(targetPageId); }, updateLink: function(link, targetPageId) { link.set({target_id: targetPageId}); }, removeLink: function(link) { this.remove(link); }, });
Version data entries
22 entries across 22 versions & 1 rubygems