Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 943d1a48a82ebce808fa6690afa6ee037ad8b3fe 1 parent 3244eff
YUI Builder authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/gallery-aui-autocomplete/js/gallery-aui-autocomplete.js
View
13 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.
*
Please sign in to comment.
Something went wrong with that request. Please try again.