o: ActiveSupport::Cache::Entry :@compressedF: @value"{I" class:EFI"ProcessedAsset;FI"logical_path;FI"modularity/modularity.js;TI" pathname;FI"/Users/kevin/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems/modularity-rails-0.17.0/app/assets/javascripts/modularity/modularity.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-03-06T14:55:22-08:00;FI" length;Fi6I" digest;F"%84e0ea3a79712477a6cd16988d8fe91dI" source;FI"6(function() { var _this = this, __slice = [].slice; this.modularity = { assert: function(condition, message) { if (!condition || (condition != null ? condition.length : void 0) === 0) { alert(message); return false; } return true; }, bind_global_event: function(event_type, callback) { if (!modularity.assert(typeof event_type === 'string', "modularity.bind_global_event: parameter 'event_type' is empty")) { return; } if (typeof callback !== 'function') { return alert("modularity.bind_global_event: parameter 'callback' must be a function, " + callback + " (" + (typeof callback) + ") given."); } return modularity.global_event_container().bind(event_type, callback); }, fire_global_event: function(event_type, data) { modularity.assert(event_type, 'Module.fire_global_event: You must provide the event type to fire.'); if (typeof event_type !== 'string') { return alert("Module.fire_global_event: Event type must be a string, " + event_type + " (" + (typeof event_type) + ") given."); } return modularity.global_event_container().trigger(event_type, data != null ? data : data = []); }, global_event_container: function() { return modularity.global_event_container_cache || (modularity.global_event_container_cache = $(window)); } }; this.modularity.bindGlobalEvent = this.modularity.bind_global_event; this.modularity.fireGlobalEvent = this.modularity.fire_global_event; this.modularity.Module = (function() { function Module(container) { var method, methodName, mixin_data, _fn, _i, _len, _ref, _ref1, _ref2, _ref3, _this = this; this.fire_event = function(event_type, data) { return Module.prototype.fire_event.apply(_this, arguments); }; this.bind_event = function(event_type, callback) { return Module.prototype.bind_event.apply(_this, arguments); }; if ((typeof container === 'string') && container !== 'testing') { container = $(container); } this.container = container; if (this.container == null) { return alert('Error in Module constructor: No container given.'); } if (container !== 'testing') { if (typeof container.jquery !== 'string') { return alert('Error in Module constructor: The given container must be a jQuery object.'); } if (!((container != null) && container.length > 0)) { return alert("Error in Module constructor: The given container ('" + container.selector + "') is empty."); } if (!((container != null) && container.length === 1)) { return alert("Error in Module constructor: The given container ('" + container.selector + "') has more than one element."); } } if (this.mixins != null) { _ref = this.mixins; for (_i = 0, _len = _ref.length; _i < _len; _i++) { mixin_data = _ref[_i]; _ref1 = mixin_data.mixin; _fn = function(methodName, method) { if (!_this[methodName]) { return _this[methodName] = function() { return method.apply(_this, arguments); }; } }; for (methodName in _ref1) { method = _ref1[methodName]; _fn(methodName, method); } if ((_ref2 = mixin_data.mixin) != null) { if ((_ref3 = _ref2.constructor) != null) { _ref3.apply(this, arguments); } } } } } Module.prototype.$ = function(query) { return this.container.find(query); }; Module.prototype.bind_event = function(event_type, callback) { if (!modularity.assert(typeof event_type === 'string', "Module.bind_event: parameter 'event_type' is empty")) { return; } if (typeof callback !== 'function') { return alert("Module.bind_event: parameter 'callback' must be a function, " + callback + " (" + (typeof callback) + ") given."); } return this.container.bind(event_type, callback); }; Module.prototype.bindEvent = Module.prototype.bind_event; Module.prototype.on = Module.prototype.bind_event; Module.prototype.fire_event = function(event_type, data) { modularity.assert(event_type, 'Module.fire_event: You must provide the event type to fire.'); if (typeof event_type !== 'string') { return alert("Module.fire_event: Event type must be a string, " + event_type + " (" + (typeof event_type) + ") given."); } return this.container.trigger(event_type, data != null ? data : data = {}); }; Module.prototype.fireEvent = Module.prototype.fire_event; Module.prototype.fire = Module.prototype.fire_event; Module.prototype.hide = function() { return this.container.hide(); }; Module.mixin = function() { var mixin, p, _base; mixin = arguments[0], p = 2 <= arguments.length ? __slice.call(arguments, 1) : []; if (!mixin) { alert("mixin not found"); } (_base = this.prototype).mixins || (_base.mixins = []); return this.prototype.mixins.push({ mixin: mixin, params: p }); }; Module.prototype.show = function() { return this.container.show(); }; return Module; })(); }).call(this); ;TI"dependency_digest;F"%698b66b2448638bd13ecd5cb423d0800I"required_paths;F[I"|/Users/kevin/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery.js;TI"/Users/kevin/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems/modularity-rails-0.17.0/app/assets/javascripts/modularity/modularity.coffee;TI"dependency_paths;F[{I" path;FI"/Users/kevin/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems/modularity-rails-0.17.0/app/assets/javascripts/modularity/modularity.coffee;TI" mtime;FI"2013-03-06T14:55:22-08:00;FI" digest;F"%04bd44d9327c508fbfdc41316c9e2ec7{I" path;FI"|/Users/kevin/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery.js;TI" mtime;FI"2013-02-08T10:54:13-08:00;FI" digest;F"%292acea2e6ffd232d17b6156961f2451I" _version;F"%6776f581a4329e299531e1d52aa59832:@created_atf1365527466.738255:@expires_in0