Created
          October 27, 2014 20:18 
        
      - 
      
- 
        Save pbouzakis/41e2571dd563eb554b9a to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (length >= 3 && isIndeterminate) { | |
| isIndeterminate = false; | |
| } else if (length > 0 && length < 3 && !isIndeterminate) { | |
| that.hasError(true); | |
| } else { | |
| that.isQueryTextInvalid(true); | |
| that.hasError(false); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment