]> source.dussan.org Git - jquery-ui.git/commitdiff
$.widget: Fixed #3633: Moved call to _init outside of constructor. This makes it...
authorScott González <scott.gonzalez@gmail.com>
Mon, 19 Jan 2009 01:30:02 +0000 (01:30 +0000)
committerScott González <scott.gonzalez@gmail.com>
Mon, 19 Jan 2009 01:30:02 +0000 (01:30 +0000)
ui/ui.core.js

index 458857d1490a720e63c0e3e24d4e653fac9068a3..7185ee38e954366a5b1259624ea12ae23c09ae14 100644 (file)
@@ -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