Sha256: 178acd60bba696f0f88ecc97cbe27789c56e85794ac87d52fbc5beffd198b0b6
Contents?: true
Size: 787 Bytes
Versions: 13
Compression:
Stored size: 787 Bytes
Contents
pageflow.externalLinks.ListEmbeddedView = Backbone.Marionette.View.extend({ render: function() { this.subview(new pageflow.CollectionView({ el: this.$el.find('div'), collection: this.model.externalSiteReferences(), itemViewConstructor: pageflow.externalLinks.ListItemEmbeddedView })); this.listenTo(this.model.externalSiteReferences(), 'add remove', function() { this.refreshScroller(); }); this.listenTo(pageflow.externalLinks.sites, 'change', function() { this.$el.data('scroller').updateHeight(); }); this.refreshScroller(); return this; }, refreshScroller: function() { this.$el.data('scroller').refresh(); this.$el.data('scroller').checkDisable(); this.$el.data('scroller').updateHeight(); } });
Version data entries
13 entries across 13 versions & 1 rubygems