Sha256: 8909349525dffc1175614bcb26e8bdd62a930e34103b505d4564610c9cd9cf9b
Contents?: true
Size: 753 Bytes
Versions: 18
Compression:
Stored size: 753 Bytes
Contents
pageflow.PageThumbnailView = Backbone.Marionette.View.extend({ modelEvents: { 'change:configuration': 'update' }, render: function() { this.update(); return this; }, update: function() { if (this.fileThumbnailView && this.currentFileThumbnail == this.model.thumbnailFile()) { return; } this.currentFileThumbnail = this.model.thumbnailFile(); if (this.fileThumbnailView) { this.fileThumbnailView.close(); } this.fileThumbnailView = this.subview(new pageflow.FileThumbnailView({ model: this.model.thumbnailFile(), className: 'thumbnail file_thumbnail', imageUrlPropertyName: this.options.imageUrlPropertyName })); this.$el.append(this.fileThumbnailView.el); } });
Version data entries
18 entries across 18 versions & 1 rubygems