Skip to content

Commit

Permalink
add enable() method to Typeahead
Browse files Browse the repository at this point in the history
Summary: adds an enable() method to Typeahead.  Use case is the following: I have a tokenizer and when a certain class of tokens is selected I want to disable the typeahead.  When those tokens are removed I want to re-enable the typeahead.

Test Plan: Implemented tokenizer with this behavior

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3617
  • Loading branch information
roddylindsay committed Oct 4, 2012
1 parent f1de6ce commit 4ee61c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/control/typeahead/Typeahead.js
Expand Up @@ -322,6 +322,15 @@ JX.install('Typeahead', {
}, },




/**
* @task control
*/
enable : function() {
this._control.disabled = false;
this._stop = false;
},


/** /**
* @task control * @task control
*/ */
Expand Down

0 comments on commit 4ee61c8

Please sign in to comment.