From: Scott González Date: Fri, 6 Jun 2008 11:30:22 +0000 (+0000) Subject: Core: Reverted back to r149: Removed wrapper changes. X-Git-Tag: 1.5.1~182 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59645bd754ed4a4c2120fc2168fb3bcb3165d545;p=jquery-ui.git Core: Reverted back to r149: Removed wrapper changes. --- diff --git a/ui/source/ui.core.js b/ui/source/ui.core.js index 22fecb960..7b96ced5a 100644 --- a/ui/source/ui.core.js +++ b/ui/source/ui.core.js @@ -100,18 +100,11 @@ $.widget = function(name, prototype) { } return this.each(function() { - var instance = $.data(this, name), self = this; - + var instance = $.data(this, name); if (isMethodCall && instance) { instance[options].apply(instance, args); } else if (!isMethodCall) { - var instance = new $[namespace][name](this, options), target = instance.element || $(this); - - if (target.is('.ui-wrapper')) { - self = target[0]; - } - - $.data(self, name, instance); + $.data(this, name, new $[namespace][name](this, options)); } }); };