o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381142251.6730628: @value"h {I" class:EFI"ProcessedAsset;FI"logical_path;FI"*locomotive/models/editable_element.js;TI" pathname;FI"…/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/models/editable_element.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-10-07T10:55:40+02:00;FI" length;Fi˜ I" digest;F"%b1a31103707a96c28b1be80606cc8950I" 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"%37b5c9710345e129b40a7bc4cabdf29bI"required_paths;F[I"…/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/models/editable_element.js.coffee;TI"dependency_paths;F[{I" path;FI"…/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/models/editable_element.js.coffee;TI" mtime;FI"2013-10-07T10:55:40+02:00;FI" digest;F"%1131a3516d5f1ea915cc544cf429acccI" _version;F"%ffd318ca8b794f42f5029101c2cf5d91