r3457 committed - tooltip: override enable and disable methods to not set the usual disa...

r3457 committed - tooltip: override enable and disable methods to not set the usual disa...


Revision: 3457
Author: joern.zaefferer
Date: Sun Nov 15 21:57:57 2009
Log: tooltip: override enable and disable methods to not set the usual
disabled styles for the tooltipped-element
http://code.google.com/p/jquery-ui/source/detail?r=3457
Modified:
/branches/dev/ui/jquery.ui.tooltip.js
=======================================
--- /branches/dev/ui/jquery.ui.tooltip.js    Sun Nov 15 21:54:50 2009
+++ /branches/dev/ui/jquery.ui.tooltip.js    Sun Nov 15 21:57:57 2009
@@ -30,6 +30,14 @@
        });
    },
+    enable: function() {
+        this.options.disabled = false;
+    },
+
+    disable: function() {
+        this.options.disabled = true;
+    },
+
    destroy: function() {
        this.element.unbind(".tooltip");
        this.tooltip.remove();