r2747 - spinner: fixed destroy method - using replaceWith rather than clone + remove
Author: pazu2k@gmail.com
Date: Sat Jun 13 09:39:45 2009
New Revision: 2747
Modified:
branches/dev/spinner/ui/ui.spinner.js
Log:
spinner: fixed destroy method - using replaceWith rather than clone + remove
Modified: branches/dev/spinner/ui/ui.spinner.js
==============================================================================
--- branches/dev/spinner/ui/ui.spinner.js (original)
+++ branches/dev/spinner/ui/ui.spinner.js Sat Jun 13 09:39:45 2009
@@ -537,10 +537,7 @@
.remove('.ui-spinner-dyn')
.end()
.parent()
- .removeClass('ui-spinner ui-state-disabled')
- .before(this.element.clone())
- .remove()
- .end();
+ .replaceWith(this.element);
},
enable: function() {
this.element