This commit is contained in:
Eduardo Lundgren 2008-06-06 03:30:06 +00:00
parent ebb04981a6
commit a18f98e547

View File

@ -105,7 +105,7 @@ $.widget = function(name, prototype) {
if (isMethodCall && instance) {
instance[options].apply(instance, args);
} else if (!isMethodCall) {
var instance = new $[namespace][name](this, options), target = instance.element || this;
var instance = new $[namespace][name](this, options), target = instance.element || $(this);
if (target.is('.ui-wrapper')) {
self = target[0];