Not sure if we really need the triple equals.
This commit is contained in:
parent
866d39a68e
commit
506e699f8a
1 changed files with 3 additions and 3 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Reference in a new issue