Skip to content

Commit

Permalink
Appcelerator 1.8 / V8 changes: getType needs a different Array check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Feb 21, 2012
1 parent 87a9cd5 commit 2f5927e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joli.js
Expand Up @@ -38,7 +38,7 @@ var joli = {
getType: function(obj) {
if (typeof obj === "undefined" || obj === null || (typeof obj === "number" && isNaN(obj))) {
return false;
} else if (obj.constructor === Array) {
} else if (obj.constructor === Array || (Array.isArray && Array.isArray(obj))) {
return "array";
} else {
return typeof obj;
Expand Down

0 comments on commit 2f5927e

Please sign in to comment.