spec/dummy/tmp/cache/assets/D12/F30/sprockets%2Fd4306d9e307a6d2ee8ff03a5c3823657 in locomotivecms-search-0.2.8 vs spec/dummy/tmp/cache/assets/D12/F30/sprockets%2Fd4306d9e307a6d2ee8ff03a5c3823657 in locomotivecms-search-0.3.0

- old
+ new

@@ -1,22 +1,21 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384093248.7038689: @value"{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1396022041.911357: @value"L{I" class:ETI"ProcessedAsset;FI"logical_path;TI"7locomotive/views/theme_assets/image_picker_view.js;FI" pathname;TI"}/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/image_picker_view.js.coffee;FI"content_type;TI"application/javascript;TI" -mtime;TI"2012-07-04T14:37:10+02:00;TI" length;Tià -I" digest;TI"%f913bd0414f407b9507274a3274961c3;FI" source;TI"à -(function() { - var _base, _ref, +mtime;TI"2012-07-04T14:37:10+02:00;TI" length;Ti + I" digest;TI"%f593320be3852d6cd297e58911b10569;FI" source;TI" + (function() { + var _base, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; (_base = Locomotive.Views).ThemeAssets || (_base.ThemeAssets = {}); Locomotive.Views.ThemeAssets.ImagePickerView = (function(_super) { __extends(ImagePickerView, _super); function ImagePickerView() { - _ref = ImagePickerView.__super__.constructor.apply(this, arguments); - return _ref; + return ImagePickerView.__super__.constructor.apply(this, arguments); } ImagePickerView.prototype.events = { 'click ul.list a': 'select_asset' }; @@ -29,47 +28,49 @@ ImagePickerView.prototype.template = function() { return ich.theme_image_picker; }; ImagePickerView.prototype.fetch_assets = function() { - var _this = this; this._reset(); return this.collection.fetch({ data: { content_type: 'image' }, - success: function() { - return _this.open(); - } + success: (function(_this) { + return function() { + return _this.open(); + }; + })(this) }); }; ImagePickerView.prototype.build_uploader = function(el, link) { - var _this = this; link.bind('click', function(event) { event.stopPropagation() & event.preventDefault(); return el.click(); }); - return el.bind('change', function(event) { - return _.each(event.target.files, function(file) { - var asset; - asset = new Locomotive.Models.ThemeAsset({ - source: file + return el.bind('change', (function(_this) { + return function(event) { + return _.each(event.target.files, function(file) { + var asset; + asset = new Locomotive.Models.ThemeAsset({ + source: file + }); + return asset.save({}, { + headers: { + 'X-Flash': true + }, + success: function(model) { + return _this.collection.add(model); + }, + error: function() { + return _this.shake(); + } + }); }); - return asset.save({}, { - headers: { - 'X-Flash': true - }, - success: function(model) { - return _this.collection.add(model); - }, - error: function() { - return _this.shake(); - } - }); - }); - }); + }; + })(this)); }; ImagePickerView.prototype.select_asset = function(event) { event.stopPropagation() & event.preventDefault(); if (this.options.on_select) { @@ -89,8 +90,8 @@ return ImagePickerView; })(Locomotive.Views.Shared.AssetPickerView); }).call(this); -;TI"dependency_digest;TI"%170e94a20ce20b7a2b1fce802066c563;FI"required_paths;T[I"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;FI"}/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/image_picker_view.js.coffee;FI"dependency_paths;T[{I" path;TI"}/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/image_picker_view.js.coffee;FI" +;TI"dependency_digest;TI"%d4ce45a655d904d6ff3162e8644c04cb;FI"required_paths;T[I"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;FI"}/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/image_picker_view.js.coffee;FI"dependency_paths;T[{I" path;TI"}/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/image_picker_view.js.coffee;FI" mtime;TI"2012-07-04T14:37:10+02:00;TI" digest;TI"%6b44321b3f0db82d050034464f16f300;F{I" path;TI"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;FI" -mtime;TI"2013-08-12T16:57:11+02:00;TI" digest;TI"%fcd46d674e5401eae1d7f4538e3fbb37;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F +mtime;TI"2014-03-19T22:50:45+01:00;TI" digest;TI"%27e3e984571c5c13f4806c59ed07ca5c;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F \ No newline at end of file