aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorDaniel Steigerwald <daniel@steigerwald.cz>2010-09-20 15:03:42 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-20 15:03:42 -0400
commit3f9b9531178b618c5702ece30e5126dfe98dea7c (patch)
treec80377929c7887512c483022b1247d43b2e07be7 /ui/jquery.ui.widget.js
parent9e1974720931ee327d4c7c03ebb57e6e0fa9ecc7 (diff)
downloadjquery-ui-3f9b9531178b618c5702ece30e5126dfe98dea7c.tar.gz
jquery-ui-3f9b9531178b618c5702ece30e5126dfe98dea7c.zip
Widget: Use charAt instead of substring for private method check.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js2
1 files changed, 1 insertions, 1 deletions
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;
}