o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1314578834.5172532: @value{I" class:EFI"BundledAsset; FI"id; F"%a6e39597292963be8d7315b0f7f38820I"logical_path; F"alpha_simprini/view.jsI" pathname; FI"_/Users/collin/Code/alpha-simprini-engine/app/assets/javascripts/alpha_simprini/view.coffee; TI"content_type; FI"application/javascript; FI" mtime; FI"2011-08-28T19:47:11-05:00; FI" body; FI"c(function() { var __hasProp = Object.prototype.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; }, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; module("AS", function() { return this.View = (function() { __extends(View, Backbone.View); AS.Event["extends"](View); View.prototype._ensureElement = function() { var _ref; return (_ref = this.el) != null ? _ref : this.el = this.build_element(); }; function View(config) { _.extend(this, config); View.__super__.constructor.apply(this, arguments); } View.prototype.klass_string = function(parts) { if (parts == null) { parts = []; } if (this.constructor === AS.View) { parts.push("APView"); return parts.reverse().join("."); } else { parts.push(this.constructor.name); return this.constructor.__super__.klass_string.call(this.constructor.__super__, parts); } }; View.prototype.element_string = function() { var base; base = "" + this.tagName + "." + (this.klass_string()); if (this.model && this.model.cid) { base += "#" + this.model.cid; } if (this.model && this.model.constructor.name) { base += "." + this.model.constructor.name; } return base; }; View.prototype.build_element = function() { return jQuery.satisfy(this.element_string()); }; View.prototype.event_splitter = /^([\w:]+)(\{.*\})?\s*(.*)$/; View.prototype.delegateEvents = function(events) { var event_name, guard, key, match, method, selector, __, _results; if (events == null) { events = this.events; } if (_.isFunction(events)) { events = events.call(this); } _results = []; for (key in events) { method = events[key]; if (!(method = this[method])) { throw new Error('Event "#{events[key]}" does not exist'); } match = key.match(this.event_splitter); __ = match[0], event_name = match[1], guard = match[2], selector = match[3]; event_name += ".delegateEvents" + this.cid; if (guard == null) { guard = "{}"; } guard = guard.replace(/(\w+):/g, function(__, match) { return "\"" + match + "\":"; }); guard = JSON.parse(guard); _results.push(__bind(function(event_name, guard, key, method, selector) { var _method, _ref, _ref2; _method = __bind(function(event) { var key, value; for (key in guard) { value = guard[key]; if (event[key] !== value) { return; } } return method.call(this, event); }, this); if (selector === '') { this.el.unbind(event_name); return this.el.bind(event_name, _method); } else if (selector[0] === '@') { if ((_ref = this[selector.slice(1)]) != null) { _ref.unbind(event_name); } return (_ref2 = this[selector.slice(1)]) != null ? _ref2.bind(event_name, _method) : void 0; } else { $(selector, this.el[0]).die(event_name); return $(selector, this.el[0]).live(event_name, _method); } }, this)(event_name, guard, key, method, selector)); } return _results; }; return View; })(); }); }).call(this); ; TI"asset_paths; F[I"_/Users/collin/Code/alpha-simprini-engine/app/assets/javascripts/alpha_simprini/view.coffee; TI"dependency_paths; F[{I" path; FI"_/Users/collin/Code/alpha-simprini-engine/app/assets/javascripts/alpha_simprini/view.coffee; TI" mtime; FIu: Time  ß€°¼: @_zoneI"CDT; T: offsetiþ°¹I"hexdigest; F"%c09c1e4e62046ed80b45d30a269e8c41I" _version; F"%a697d8e69dd5bf8f3a29159773d6c5f5