Sha256: d2e074e27d669a4012e83e55fab7341b25e058166f1653362e8a76437fac2fd9
Contents?: true
Size: 490 Bytes
Versions: 9
Compression:
Stored size: 490 Bytes
Contents
//= require ./page_links_collection pageflow.internalLinks.GridPageLinksCollection = pageflow.internalLinks.PageLinksCollection.extend({ canAddLink: function() { return this.defaultPosition() !== undefined; }, defaultPosition: function() { var collection = this; return _.chain(25) .times(function(index) { return index; }) .find(function(position) { return !collection.findWhere({position: position}); }) .value(); } });
Version data entries
9 entries across 9 versions & 1 rubygems