Skip to content

Commit

Permalink
Merge pull request #17 from nicjansma/master
Browse files Browse the repository at this point in the history
Appcelerator 1.8 / V8 changes: getType needs a different Array check
  • Loading branch information
xavierlacot committed Feb 22, 2012
2 parents 87a9cd5 + 2f5927e commit 3cd90e7
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 3cd90e7

Please sign in to comment.