r3307 committed - Buttons: Use .call() instead of .apply() or calling the base destroy m...
Revision: 3307
Author: scott.gonzalez
Date: Sat Sep 26 18:53:49 2009
Log: Buttons: Use .call() instead of .apply() or calling the base destroy
method.
http://code.google.com/p/jquery-ui/source/detail?r=3307
Modified:
/branches/dev/ui/jquery.ui.button.js
=======================================
--- /branches/dev/ui/jquery.ui.button.js Sat Sep 26 07:08:05 2009
+++ /branches/dev/ui/jquery.ui.button.js Sat Sep 26 18:53:49 2009
@@ -42,7 +42,7 @@
this.element
.removeClass("ui-button ui-widget ui-state-default ui-corner-all
ui-state-hover ui-state-focus")
.unbind(".button");
- $.widget.prototype.destroy.apply(this, arguments);
+ $.widget.prototype.destroy.call(this);
}
});
@@ -78,7 +78,7 @@
destroy: function() {
this.element.add(this.label).show();
this.button.remove();
- $.widget.prototype.destroy.apply(this, arguments);
+ $.widget.prototype.destroy.call(this);
}
});
@@ -127,7 +127,7 @@
destroy: function() {
this.buttons.remove();
this.labels.add(this.radios).show();
- $.widget.prototype.destroy.apply(this, arguments);
+ $.widget.prototype.destroy.call(this);
}
});