Sha256: 476ded62a47ac643aea2cb553d85eebadce4252ec94938393ca1d3c97beecfe5
Contents?: true
Size: 696 Bytes
Versions: 10
Compression:
Stored size: 696 Bytes
Contents
pageflow.file = { cancelUpload: function() { if (this.get('state') === 'uploading') { this.trigger('uploadCancelled'); this.destroy(); } }, uploadFailed: function() { this.set('state', 'upload_failed'); this.unset('uploading_progress'); this.trigger('uploadFailed'); }, isUploading: function() { return this.get('state') === 'uploading'; }, isUploaded: function() { return this.get('state') !== 'uploading' && this.get('state') !== 'upload_failed'; }, destroyUsage: function() { var usage = new pageflow.FileUsage({id: this.get('usage_id')}); usage.destroy(); this.trigger('destroy', this, this.collection, {}); } };
Version data entries
10 entries across 10 versions & 1 rubygems