Widget: Use charAt instead of substring for private method check.

This commit is contained in:
Daniel Steigerwald 2010-09-20 15:03:42 -04:00 committed by Scott González
parent 9e19747209
commit 3f9b953117

View 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;
}