From 46f609bdbfde496123b2f3776bed0a1927d8d1c9 Mon Sep 17 00:00:00 2001 From: Guillermo Narvaja Date: Fri, 2 Sep 2016 15:00:11 -0300 Subject: [PATCH] Replaces "==" by "===" in the comparison. --- src/tags-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tags-input.js b/src/tags-input.js index 82091213..b644336d 100644 --- a/src/tags-input.js +++ b/src/tags-input.js @@ -413,7 +413,7 @@ tagsInput.directive('tagsInput', function($timeout, $document, $window, $q, tags addKeys = {}, shouldAdd, shouldRemove, shouldSelect, shouldEditLastTag, newTagText = scope.newTag.text(); - if ((event.keyCode == 229) && (scope.text[newTagText.length -1] == ',')) { + if ((event.keyCode === 229) && (scope.text[newTagText.length -1] === ',')) { key = KEYS.comma; newTagText = newTagText.slice(0, -1); // Remove comma }