Permalink
Browse files

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

  • Loading branch information...
1 parent 9e19747 commit 3f9b9531178b618c5702ece30e5126dfe98dea7c @steida steida committed with scottgonzalez Sep 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 3f9b953

Please sign in to comment.