Not sure if we really need the triple equals.

This commit is contained in:
jgen 2014-04-24 01:15:30 -04:00
parent 866d39a68e
commit 506e699f8a

View file

@ -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++;
}