o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360459622.403596: @value"{I" class:EFI"ProcessedAsset;FI"logical_path;FI"jquery.ui.mouse.js;FI" pathname;FI"u/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-ui-rails-3.0.1/vendor/assets/javascripts/jquery.ui.mouse.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-02-05T08:12:43+01:00;FI" length;FižI" digest;F"%d0c2c91ac002761ea8cc77dc63ddb428I" source;FI"ž /*! * jQuery UI Mouse 1.9.2 * http://jqueryui.com * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/mouse/ * * Depends: * jquery.ui.widget.js */ (function( $, undefined ) { var mouseHandled = false; $( document ).mouseup( function( e ) { mouseHandled = false; }); $.widget("ui.mouse", { version: "1.9.2", options: { cancel: 'input,textarea,button,select,option', distance: 1, delay: 0 }, _mouseInit: function() { var that = this; this.element .bind('mousedown.'+this.widgetName, function(event) { return that._mouseDown(event); }) .bind('click.'+this.widgetName, function(event) { if (true === $.data(event.target, that.widgetName + '.preventClickEvent')) { $.removeData(event.target, that.widgetName + '.preventClickEvent'); event.stopImmediatePropagation(); return false; } }); this.started = false; }, // TODO: make sure destroying one instance of mouse doesn't mess with // other instances of mouse _mouseDestroy: function() { this.element.unbind('.'+this.widgetName); if ( this._mouseMoveDelegate ) { $(document) .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); } }, _mouseDown: function(event) { // don't let more than one widget handle mouseStart if( mouseHandled ) { return; } // we may have missed mouseup (out of window) (this._mouseStarted && this._mouseUp(event)); this._mouseDownEvent = event; var that = this, btnIsLeft = (event.which === 1), // event.target.nodeName works around a bug in IE 8 with // disabled inputs (#7620) elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false); if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) { return true; } this.mouseDelayMet = !this.options.delay; if (!this.mouseDelayMet) { this._mouseDelayTimer = setTimeout(function() { that.mouseDelayMet = true; }, this.options.delay); } if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { this._mouseStarted = (this._mouseStart(event) !== false); if (!this._mouseStarted) { event.preventDefault(); return true; } } // Click event may never have fired (Gecko & Opera) if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) { $.removeData(event.target, this.widgetName + '.preventClickEvent'); } // these delegates are required to keep context this._mouseMoveDelegate = function(event) { return that._mouseMove(event); }; this._mouseUpDelegate = function(event) { return that._mouseUp(event); }; $(document) .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); event.preventDefault(); mouseHandled = true; return true; }, _mouseMove: function(event) { // IE mouseup check - mouseup happened when mouse was out of window if ($.ui.ie && !(document.documentMode >= 9) && !event.button) { return this._mouseUp(event); } if (this._mouseStarted) { this._mouseDrag(event); return event.preventDefault(); } if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { this._mouseStarted = (this._mouseStart(this._mouseDownEvent, event) !== false); (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); } return !this._mouseStarted; }, _mouseUp: function(event) { $(document) .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; if (event.target === this._mouseDownEvent.target) { $.data(event.target, this.widgetName + '.preventClickEvent', true); } this._mouseStop(event); } return false; }, _mouseDistanceMet: function(event) { return (Math.max( Math.abs(this._mouseDownEvent.pageX - event.pageX), Math.abs(this._mouseDownEvent.pageY - event.pageY) ) >= this.options.distance ); }, _mouseDelayMet: function(event) { return this.mouseDelayMet; }, // These are placeholder methods, to be overriden by extending plugin _mouseStart: function(event) {}, _mouseDrag: function(event) {}, _mouseStop: function(event) {}, _mouseCapture: function(event) { return true; } }); })(jQuery); ;FI"dependency_digest;F"%a7e47b18127d93006eff53f3f037e07aI"required_paths;F[ I"i/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery.js;FI"t/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-ui-rails-3.0.1/vendor/assets/javascripts/jquery.ui.core.js;FI"v/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-ui-rails-3.0.1/vendor/assets/javascripts/jquery.ui.widget.js;FI"u/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-ui-rails-3.0.1/vendor/assets/javascripts/jquery.ui.mouse.js;FI"dependency_paths;F[ {I" path;FI"u/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-ui-rails-3.0.1/vendor/assets/javascripts/jquery.ui.mouse.js;FI" mtime;FI"2013-02-05T08:12:43+01:00;FI" digest;F"%ec8f3fdbd584dbd9c28cd326ef115151{I" path;FI"t/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-ui-rails-3.0.1/vendor/assets/javascripts/jquery.ui.core.js;FI" mtime;FI"2013-02-05T08:12:43+01:00;FI" digest;F"%64a066f43fd88497472843c5e9992b69{I" path;FI"i/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery.js;FI" mtime;FI"2013-02-10T02:01:55+01:00;FI" digest;F"%292acea2e6ffd232d17b6156961f2451{I" path;FI"v/Users/abalsam/.rvm/gems/ruby-1.9.3-p286/gems/jquery-ui-rails-3.0.1/vendor/assets/javascripts/jquery.ui.widget.js;FI" mtime;FI"2013-02-05T08:12:43+01:00;FI" digest;F"%ed4917e01232b9e22bf20c16fc1c5a3eI" _version;F"%6776f581a4329e299531e1d52aa59832