Skip to content

Commit

Permalink
Merge pull request aehlke#135 from jhoff/tagLimit_fix
Browse files Browse the repository at this point in the history
Fixes logic flaw with tagLimit
  • Loading branch information
aehlke committed Jan 3, 2013
2 parents 9afa0a8 + 7f173f7 commit f06814e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
return false;
}

if (this.options.tagLimit && this.options.tagLimit >= this._tags().length) {
if (this.options.tagLimit && this._tags().length >= this.options.tagLimit) {
this._trigger('onTagLimitExceeded', null, {duringInitialization: duringInitialization});
return false;
}
Expand Down

0 comments on commit f06814e

Please sign in to comment.