mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
correct scoping
This commit is contained in:
parent
c5c443fda3
commit
64ca5552bc
1 changed files with 1 additions and 1 deletions
|
@ -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.length || !this.get('allowCreate')) return;
|
if (!term.length || !self.get('allowCreate')) return;
|
||||||
|
|
||||||
if ($(data).filter(function() {
|
if ($(data).filter(function() {
|
||||||
return this.text.localeCompare(term) === 0;
|
return this.text.localeCompare(term) === 0;
|
||||||
|
|
Loading…
Reference in a new issue