From 3f9b9531178b618c5702ece30e5126dfe98dea7c Mon Sep 17 00:00:00 2001 From: Daniel Steigerwald Date: Mon, 20 Sep 2010 15:03:42 -0400 Subject: [PATCH] Widget: Use charAt instead of substring for private method check. --- ui/jquery.ui.widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index dbfea2574..aef9b8378 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -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; } -- 2.39.5