Widget: Fix line length issues

Ref gh-1690
This commit is contained in:
Alexander Schmitz 2016-03-31 00:05:45 -04:00 committed by Scott González
parent ca3d4511c4
commit c4e5d73b36

View File

@ -225,12 +225,14 @@ $.widget.bridge = function( name, object ) {
}
if ( !instance ) {
return $.error( "cannot call methods on " + name + " prior to initialization; " +
return $.error( "cannot call methods on " + name +
" prior to initialization; " +
"attempted to call method '" + options + "'" );
}
if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
return $.error( "no such method '" + options + "' for " + name + " widget instance" );
return $.error( "no such method '" + options + "' for " + name +
" widget instance" );
}
methodValue = instance[ options ].apply( instance, args );