o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1397508831.2651289: @value"1 {I" class:ETI"ProcessedAsset;FI"logical_path;TI"/locomotive/views/sites/memberships_view.js;FI" pathname;TI"¦/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-5337f0929131/app/assets/javascripts/locomotive/views/sites/memberships_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-04-10T01:06:58+02:00;TI" length;TiåI" digest;TI"%9182e837de17a92a8102d1061eaf0d43;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).Sites || (_base.Sites = {}); Locomotive.Views.Sites.MembershipsView = (function(_super) { var _entry_views; __extends(MembershipsView, _super); function MembershipsView() { return MembershipsView.__super__.constructor.apply(this, arguments); } 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() { return this.model.get('memberships').each((function(_this) { return function(membership, index) { return _this._insert_entry(membership, index); }; })(this)); }; 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;TI"%b4385fc90b807b64aae51d185c400784;FI"required_paths;T[I"¦/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-5337f0929131/app/assets/javascripts/locomotive/views/sites/memberships_view.js.coffee;FI"dependency_paths;T[{I" path;TI"¦/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-5337f0929131/app/assets/javascripts/locomotive/views/sites/memberships_view.js.coffee;FI" mtime;TI"2014-04-10T01:06:58+02:00;TI" digest;TI"%ed393d19f12c23b29c0aefdefc70c383;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F