Sha256: e0b75c5f73c0e16745342af039ec17c3a05959b94d4fe90b9c23843c7fe62796
Contents?: true
Size: 427 Bytes
Versions: 46
Compression:
Stored size: 427 Bytes
Contents
pageflow.StaticThumbnailView = Backbone.Marionette.ItemView.extend({ template: 'templates/static_thumbnail', className: 'static_thumbnail', modelEvents: { 'change:configuration': 'update' }, onRender: function() { this.update(); }, update: function() { this.$el.css('background-image', 'url(' + this._imageUrl() + ')'); }, _imageUrl: function() { return this.model.thumbnailUrl(); } });
Version data entries
46 entries across 46 versions & 1 rubygems