o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1358772534.91749¸(: @value" {I" class:EFI"ProcessedAsset;FI"logical_path;FI")vendor/backbone.advanced-delegate.js;FI" pathname;FI"o/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/vendor/backbone.advanced-delegate.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-10T16:05:49-02:00;FI" length;Fi‘I" digest;F"%4c344325df4def51a94530ad447501cbI" 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"%ee60c905a1c61bfff667902a7da1e3bfI"required_paths;F[I"o/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/vendor/backbone.advanced-delegate.js;FI"dependency_paths;F[{I" path;FI"o/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/vendor/backbone.advanced-delegate.js;FI" mtime;FI"2013-01-10T16:05:49-02:00;FI" digest;F"%4c344325df4def51a94530ad447501cbI" _version;F"%9f3b95dd7ea3030dc35985c0a8020862