From 59645bd754ed4a4c2120fc2168fb3bcb3165d545 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 6 Jun 2008 11:30:22 +0000 Subject: [PATCH] Core: Reverted back to r149: Removed wrapper changes. --- ui/source/ui.core.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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)); } }); }; -- 2.39.5