Mouse: Fix line length issues

Ref gh-1690
This commit is contained in:
Alexander Schmitz 2016-03-30 22:54:03 -04:00 committed by Scott González
parent a69b1a9eb8
commit 55b53b5462

View 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