o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984315.951741: @value"x {I" class:EFI"ProcessedAsset;FI"logical_path;FI"/locomotive/views/sites/memberships_view.js;TI" pathname;FI"v/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/memberships_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-18T09:21:50+01:00;FI" length;FiâI" digest;F"%0b0f9b2307d87f615ab4f56a283f83f3I" source;FI"â(function() { var _base, _ref, __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).Sites || (_base.Sites = {}); Locomotive.Views.Sites.MembershipsView = (function(_super) { var _entry_views; __extends(MembershipsView, _super); function MembershipsView() { _ref = MembershipsView.__super__.constructor.apply(this, arguments); return _ref; } MembershipsView.prototype.tagName = 'div'; MembershipsView.prototype.className = 'list'; _entry_views = []; MembershipsView.prototype.render = function() { this.render_entries(); this.enable_ui_effects(); return this; }; MembershipsView.prototype.change_entry = function(membership, value) { return membership.set({ role: value }); }; MembershipsView.prototype.remove_entry = function(membership) { return membership.set({ _destroy: true }); }; MembershipsView.prototype.render_entries = function() { var _this = this; return this.model.get('memberships').each(function(membership, index) { return _this._insert_entry(membership, index); }); }; MembershipsView.prototype.enable_ui_effects = function() { return this.$('.entry select').editableField(); }; MembershipsView.prototype._insert_entry = function(membership, index) { var view; view = new Locomotive.Views.Sites.MembershipEntryView({ model: membership, parent_view: this, index: index }); (this._entry_views || (this._entry_views = [])).push(view); return $(this.el).append(view.render().el); }; return MembershipsView; })(Backbone.View); }).call(this); ;TI"dependency_digest;F"%bca03a8d84b19f5d003843bf0fc6eacfI"required_paths;F[I"v/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/memberships_view.js.coffee;TI"dependency_paths;F[{I" path;FI"v/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/memberships_view.js.coffee;TI" mtime;FI"2013-01-18T09:21:50+01:00;FI" digest;F"%816101204f7ba1be408a4748a5025861I" _version;F"%6776f581a4329e299531e1d52aa59832