o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361449312.7917309«¸: @value"N {I" class:EFI"ProcessedAsset;FI"logical_path;FI")vendor/backbone.advanced-delegate.js;FI" pathname;FI"/Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/iugu-ux-0.9.2/vendor/assets/javascripts/vendor/backbone.advanced-delegate.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-17T19:18:49-02:00;FI" length;Fi‘I" digest;F"%39dd129dcb22733738a76444870c561fI" source;FI"‘_.each(["View"], function(name) { // Cache Backbone constructor. var ctor = Backbone[name]; // Cache original fetch. var delegateEvents = ctor.prototype.delegateEvents; var delegateEventSplitter = /^(\S+)\s*(.*)$/; // Override the fetch method to emit a fetch event. ctor.prototype.delegateEvents = function(events) { if (!(events || (events = _.result(this, 'events')))) return; this.undelegateEvents(); for (var key in events) { var method = events[key]; if (!_.isFunction(method)) method = this[events[key]]; if (!method) throw new Error('Method "' + events[key] + '" does not exist'); var match = key.match(delegateEventSplitter); var eventName = match[1], selector = match[2]; method = _.bind(method, this); originalEvent = eventName; eventName = '.delegateEvents' + this.cid; if ((originalEvent == "click") && (selector !== '')) { if (window.TOUCH_SUPPORT) { this.$el.on( "touchstart" + eventName, selector, function(event) { $(this).addClass('active'); } ); this.$el.on( "touchend" + eventName, selector, function(event) { $(this).removeClass('active'); } ); } else { this.$el.on( "mousedown" + eventName, selector, function(event) { $(this).addClass('active'); } ); this.$el.on( "mouseup" + eventName, selector, function(event) { $(this).removeClass('active'); } ); } } if (selector === '') { this.$el.on(originalEvent + eventName, method); } else { this.$el.on(originalEvent + eventName, selector, method); } } }; }); ;FI"dependency_digest;F"%e2344795c6e77fe3f64286e69fea3a70I"required_paths;F[I"/Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/iugu-ux-0.9.2/vendor/assets/javascripts/vendor/backbone.advanced-delegate.js;FI"dependency_paths;F[{I" path;FI"/Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/iugu-ux-0.9.2/vendor/assets/javascripts/vendor/backbone.advanced-delegate.js;FI" mtime;FI"2013-01-17T19:18:49-02:00;FI" digest;F"%39dd129dcb22733738a76444870c561fI" _version;F"%6776f581a4329e299531e1d52aa59832