Sha256: 51329a019da0d1a2da553d6bb1d553c931c631f4c43a94d664e10c2564865ba2
Contents?: true
Size: 787 Bytes
Versions: 14
Compression:
Stored size: 787 Bytes
Contents
pageflow.beforeAfter.BeforeAfterEmbeddedView = Backbone.Marionette.View.extend({ modelEvents: { 'change': 'update' }, render: function() { this.beforeImageView = new pageflow.BackgroundImageEmbeddedView({ el: this.$el.find('.before_image'), model: this.model, propertyName: 'before_image_id', dataSizeAttributes: true }); this.afterImageView = new pageflow.BackgroundImageEmbeddedView({ el: this.$el.find('.after_image'), model: this.model, propertyName: 'after_image_id', dataSizeAttributes: true }); this.update(); return this; }, update: function() { this.beforeImageView.update(); this.afterImageView.update(); this.$el.before_after(); this.$el.before_after('refresh'); } });
Version data entries
14 entries across 14 versions & 1 rubygems