]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget: Use charAt instead of substring for private method check.
authorDaniel Steigerwald <daniel@steigerwald.cz>
Mon, 20 Sep 2010 19:03:42 +0000 (15:03 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 20 Sep 2010 19:03:42 +0000 (15:03 -0400)
ui/jquery.ui.widget.js

index dbfea2574228274bff039d9574aacd828bf533f8..aef9b8378c7cc05717e1b5b75fa8c66e6976e0df 100644 (file)
@@ -90,7 +90,7 @@ $.widget.bridge = function( name, object ) {
                        options;
 
                // prevent calls to internal methods
-               if ( isMethodCall && options.substring( 0, 1 ) === "_" ) {
+               if ( isMethodCall && options.charAt( 0 ) === "_" ) {
                        return returnValue;
                }