Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #36 from roddylindsay/master

add an enable() method to Typeahead
  • Loading branch information...
commit 1006c35999c3c6429166d2bd69941b34ac7af54b 2 parents f1de6ce + 4ee61c8
@epriestley epriestley authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/lib/control/typeahead/Typeahead.js
View
9 src/lib/control/typeahead/Typeahead.js
@@ -325,6 +325,15 @@ JX.install('Typeahead', {
/**
* @task control
*/
+ enable : function() {
+ this._control.disabled = false;
+ this._stop = false;
+ },
+
+
+ /**
+ * @task control
+ */
disable : function() {
this._control.blur();
this._control.disabled = true;
Please sign in to comment.
Something went wrong with that request. Please try again.