correct typo

This commit is contained in:
Sam 2016-07-10 10:51:49 +10:00
parent 304f7040a3
commit c5c443fda3
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ export default Ember.TextField.extend({
term = term.replace(filterRegexp, '').trim(); term = term.replace(filterRegexp, '').trim();
// No empty terms, make sure the user has permission to create the tag // No empty terms, make sure the user has permission to create the tag
if (!term.lenght || !this.get('allowCreate')) return; if (!term.length || !this.get('allowCreate')) return;
if ($(data).filter(function() { if ($(data).filter(function() {
return this.text.localeCompare(term) === 0; return this.text.localeCompare(term) === 0;