aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widget.js')
-rw-r--r--ui/widget.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/widget.js b/ui/widget.js
index e38c0c871..c82b95326 100644
--- a/ui/widget.js
+++ b/ui/widget.js
@@ -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 );