From 506e699f8a4881de46e4dfe29cd6540929878251 Mon Sep 17 00:00:00 2001 From: jgen Date: Thu, 24 Apr 2014 01:15:30 -0400 Subject: [PATCH] Not sure if we really need the triple equals. --- ext/tag_editcloud/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/tag_editcloud/script.js b/ext/tag_editcloud/script.js index 8fb87a1e..71a9c287 100644 --- a/ext/tag_editcloud/script.js +++ b/ext/tag_editcloud/script.js @@ -1,8 +1,8 @@ -/*jshint bitwise:true, curly:true, forin:false, noarg:true, noempty:true, nonew:true, undef:true, strict:false, browser:true, jquery:true */ +/*jshint bitwise:true, curly:true, eqeqeq: false, forin:false, noarg:true, noempty:true, nonew:true, undef:true, strict:false, browser:true, jquery:true */ Array.prototype.editcloud_contains = function (ele) { for (var i = 0; i < this.length; i++) { - if (this[i] === ele) { + if (this[i] == ele) { return true; } } @@ -12,7 +12,7 @@ Array.prototype.editcloud_remove = function (ele) { var arr = []; var count = 0; for (var i = 0; i < this.length; i++) { - if (this[i] !== ele) { + if (this[i] != ele) { arr[count] = this[i]; count++; }