Skip to content

Commit 3f9b953

Browse files
steidascottgonzalez
authored andcommitted
Widget: Use charAt instead of substring for private method check.
1 parent 9e19747 commit 3f9b953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ $.widget.bridge = function( name, object ) {
9090
options;
9191

9292
// prevent calls to internal methods
93-
if ( isMethodCall && options.substring( 0, 1 ) === "_" ) {
93+
if ( isMethodCall && options.charAt( 0 ) === "_" ) {
9494
return returnValue;
9595
}
9696

0 commit comments

Comments
 (0)