From 59645bd754ed4a4c2120fc2168fb3bcb3165d545 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 6 Jun 2008 11:30:22 +0000 Subject: Core: Reverted back to r149: Removed wrapper changes. --- ui/source/ui.core.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'ui') 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)); } }); }; -- cgit v1.2.3