]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: Fix line length issues
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 31 Mar 2016 02:54:03 +0000 (22:54 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 13 Apr 2016 15:31:45 +0000 (11:31 -0400)
Ref gh-1690

ui/widgets/mouse.js

index c14aebe536fa54a72fa60118c8af92b4b995db41..0ae8979a1ba27cabec587c7dd13cccdc03a2d014 100644 (file)
@@ -89,7 +89,8 @@ return $.widget( "ui.mouse", {
 
                        // 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 );
+                       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;
                }
@@ -141,7 +142,8 @@ return $.widget( "ui.mouse", {
                if ( this._mouseMoved ) {
 
                        // IE mouseup check - mouseup happened when mouse was out of window
-                       if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button ) {
+                       if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) &&
+                                       !event.button ) {
                                return this._mouseUp( event );
 
                        // Iframe mouseup check - mouseup occurred in another document