Permalink
Browse files

gallery-2011.02.09-21-32 liferay gallery-aui-autocomplete

  • Loading branch information...
1 parent 3244eff commit 943d1a48a82ebce808fa6690afa6ee037ad8b3fe YUI Builder committed Feb 9, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/gallery-aui-autocomplete/js/gallery-aui-autocomplete.js
@@ -638,6 +638,19 @@ var AutoComplete = A.Component.create(
},
/**
+ * Descructor lifecycle implementation for the Autocomplete class.
+ * Purges events attached to the node (and all child nodes).
+ *
+ * @method destructor
+ * @protected
+ */
+ destructor: function() {
+ var instance = this;
+
+ instance.overlay.destroy();
+ },
+
+ /**
* An overridable method that is executed before the result container is shown.
* The method can return false to prevent the container from being shown.
*

0 comments on commit 943d1a4

Please sign in to comment.