Permalink
Browse files

correct scoping

  • Loading branch information...
SamSaffron committed Jul 10, 2016
1 parent c5c443f commit 64ca5552bceef54fca7da51da0c2f933ef1ac148
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/discourse/components/tag-chooser.js.es6
@@ -78,7 +78,7 @@ export default Ember.TextField.extend({
term = term.replace(filterRegexp, '').trim();
// No empty terms, make sure the user has permission to create the tag
if (!term.length || !this.get('allowCreate')) return;
if (!term.length || !self.get('allowCreate')) return;
if ($(data).filter(function() {
return this.text.localeCompare(term) === 0;

0 comments on commit 64ca555

Please sign in to comment.