o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420623290.129568: @value"²{I" class:ETI"ProcessedAsset;FI"logical_path;TI"jquery-ui/mouse.js;FI" pathname;TI"l/Users/aishek/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/mouse.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2015-01-06T20:48:13+03:00;TI" length;TièI" digest;TI"%5d75739d0ec009d330882c2964aa2889;FI" source;TI"è /*! * jQuery UI Mouse 1.11.2 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/mouse/ */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery", "./widget" ], factory ); } else { // Browser globals factory( jQuery ); } }(function( $ ) { var mouseHandled = false; $( document ).mouseup( function() { mouseHandled = false; }); return $.widget("ui.mouse", { version: "1.11.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 ) { this.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; } this._mouseMoved = false; // 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); }; this.document .bind( "mousemove." + this.widgetName, this._mouseMoveDelegate ) .bind( "mouseup." + this.widgetName, this._mouseUpDelegate ); event.preventDefault(); mouseHandled = true; return true; }, _mouseMove: function(event) { // Only check for mouseups outside the document if you've moved inside the document // at least once. This prevents the firing of mouseup in the case of IE<9, which will // fire a mousemove event if content is placed under the cursor. See #7778 // Support: IE <9 if ( this._mouseMoved ) { // IE mouseup check - mouseup happened when mouse was out of window if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) { return this._mouseUp(event); // Iframe mouseup check - mouseup occurred in another document } else if ( !event.which ) { return this._mouseUp( event ); } } if ( event.which || event.button ) { this._mouseMoved = true; } 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) { this.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); } mouseHandled = false; 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; } }); })); ;TI"dependency_digest;TI"%eae7c82ae21c599247de96f447991cf2;FI"required_paths;T[I"k/Users/aishek/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/core.js;FI"m/Users/aishek/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/widget.js;FI"l/Users/aishek/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/mouse.js;FI"dependency_paths;T[{I" path;TI"l/Users/aishek/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/mouse.js;FI" mtime;TI"2015-01-06T20:48:13+03:00;TI" digest;TI"%be2c9fc3091add46341fd0a86be25389;F{@I"k/Users/aishek/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/core.js;F@!I"2015-01-06T20:48:13+03:00;T@#I"%2f8500070795d7388aa66b621b97471b;F{@I"m/Users/aishek/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/widget.js;F@!I"2015-01-06T20:48:13+03:00;T@#I"%31ba2b08eacec5781133da223d3c6fc3;FI" _version;TI"%6cedd7ea766d3b90466ce5175ac9198b;F