Skip to content

Commit

Permalink
Fix incorrect object type check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed Feb 23, 2012
1 parent 4c7cd15 commit afaef4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.js
Expand Up @@ -42,7 +42,7 @@ function isDate(type) { return stringify(type) === daty }
function isRegExp(type) { return String(type) === regexpy }
function isArguments(type) { return stringify(type) === argumenty }
function isFunction(type) { return typeof(type) === 'undefined' }
function isObject(type) { return Object.getPrototypeOf(type) === null }
function isObject(type) { return type && typeof(type) === 'object' }

function define(signature) {
/**
Expand Down

0 comments on commit afaef4f

Please sign in to comment.