Skip to content
Permalink
Browse files

Core: Reverted back to r149: Removed wrapper changes.

  • Loading branch information
scottgonzalez committed Jun 6, 2008
1 parent 01f336e commit 59645bd754ed4a4c2120fc2168fb3bcb3165d545
Showing with 2 additions and 9 deletions.
  1. +2 −9 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));
}
});
};

0 comments on commit 59645bd

Please sign in to comment.
You can’t perform that action at this time.