diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-15 18:58:20 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-15 18:58:20 +0000 |
commit | 7d96a0d0966d9e680c968db2869900ac624a44ad (patch) | |
tree | 88076c2f23bb64749d7af87bc26991798dcff915 /ui/jquery.ui.button.js | |
parent | ab153e07c78098567b9f1e53deb9145bcd6c22d3 (diff) | |
download | jquery-ui-7d96a0d0966d9e680c968db2869900ac624a44ad.tar.gz jquery-ui-7d96a0d0966d9e680c968db2869900ac624a44ad.zip |
Widget factory: Changed _create to _init.
Partial fix for #5064 - Widget: make multiple instantiation more useful.
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r-- | ui/jquery.ui.button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index f104f890d..1b6442975 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -27,7 +27,7 @@ $.widget("ui.button", { secondary: null } }, - _init: function() { + _create: function() { this._determineButtonType(); this.hasTitle = !!this.buttonElement.attr('title'); @@ -208,7 +208,7 @@ $.widget("ui.button", { }); $.widget("ui.buttonset", { - _init: function() { + _create: function() { this.element.addClass("ui-button-set"); this.buttons = this.element.find(':button, :submit, :reset, :checkbox, :radio, a, .ui-button') .button() |