o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984305.739991: @value" {I" class:EFI"ProcessedAsset;FI"logical_path;FI"*locomotive/models/editable_element.js;TI" pathname;FI"q/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/models/editable_element.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-18T09:21:50+01:00;FI" length;Fi˜ I" digest;F"%c983dac30ba72487b96f79185318abfdI" source;FI"˜ (function() { var _ref, _ref1, __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; }; Locomotive.Models.EditableElement = (function(_super) { __extends(EditableElement, _super); function EditableElement() { _ref = EditableElement.__super__.constructor.apply(this, arguments); return _ref; } EditableElement.prototype.toJSONForSave = function() { var _this = this; return _.tap({}, function(hash) { var key, value, _ref1; _ref1 = _this.toJSON(); for (key in _ref1) { value = _ref1[key]; if (_.include(['id', 'source', 'content', 'remove_source'], key)) { hash[key] = value; } } if (_this.get('type') === 'EditableFile') { return delete hash['content']; } else { return delete hash['source']; } }); }; return EditableElement; })(Backbone.Model); Locomotive.Models.EditableElementsCollection = (function(_super) { __extends(EditableElementsCollection, _super); function EditableElementsCollection() { _ref1 = EditableElementsCollection.__super__.constructor.apply(this, arguments); return _ref1; } EditableElementsCollection.prototype.model = Locomotive.Models.EditableElement; EditableElementsCollection.prototype.blocks = function() { var names, _this = this; names = _.uniq(this.map(function(editable, index) { return editable.get('block_name'); })); return _.tap([], function(list) { return _.each(names, function(name, index) { return list.push({ name: name, index: index }); }); }); }; EditableElementsCollection.prototype.by_block = function(name) { return this.filter(function(editable) { return editable.get('block_name') === name; }); }; EditableElementsCollection.prototype.toJSONForSave = function() { var _this = this; return this.map(function(model) { return model.toJSONForSave(); }); }; return EditableElementsCollection; })(Backbone.Collection); }).call(this); ;TI"dependency_digest;F"%9c0e201b308b1f53e687df2b715f9d38I"required_paths;F[I"q/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/models/editable_element.js.coffee;TI"dependency_paths;F[{I" path;FI"q/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/models/editable_element.js.coffee;TI" mtime;FI"2013-01-18T09:21:50+01:00;FI" digest;F"%6b04a557329b7b63c3fec83056cfbb58I" _version;F"%6776f581a4329e299531e1d52aa59832