Skip to content
Permalink
Browse files

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

  • Loading branch information
steida authored and scottgonzalez committed Sep 20, 2010
1 parent 9e19747 commit 3f9b9531178b618c5702ece30e5126dfe98dea7c
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.
You can’t perform that action at this time.