diff --git a/plugins/c9.ide.ui/lib_apf.js b/plugins/c9.ide.ui/lib_apf.js index d9c8a41a..ca9733d3 100644 --- a/plugins/c9.ide.ui/lib_apf.js +++ b/plugins/c9.ide.ui/lib_apf.js @@ -1819,7 +1819,7 @@ defineProp(Array.prototype, "pushUnique", function(){ */ defineProp(Array.prototype, "search", function(){ for (var i = 0, length = arguments.length; i < length; i++) { - if (typeof this[i] != "array") + if (!Array.isArray(this[i])) continue; for (var j = 0; j < length; j++) { if (this[i][j] != arguments[j])