Permalink
Browse files

Merge pull request #135 from jhoff/tagLimit_fix

Fixes logic flaw with tagLimit
  • Loading branch information...
2 parents 9afa0a8 + 7f173f7 commit f06814e9c7c0642d070b928bd1674637a94ed6be @aehlke committed Jan 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/tag-it.js
View
@@ -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;
}

0 comments on commit f06814e

Please sign in to comment.