aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.core.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r--ui/ui.core.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 458857d14..7185ee38e 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -269,7 +269,7 @@ $.widget = function(name, prototype) {
// constructor
(!instance && !isMethodCall &&
- $.data(this, name, new $[namespace][name](this, options)));
+ $.data(this, name, new $[namespace][name](this, options))._init());
// method call
(instance && isMethodCall && $.isFunction(instance[options]) &&
@@ -307,8 +307,6 @@ $.widget = function(name, prototype) {
.bind('remove', function() {
return self.destroy();
});
-
- this._init();
};
// add widget prototype