diff --git a/package.json b/package.json index d3ecfe5..179ce02 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "contributors": [ "Douglas Crockford " ], "dependencies": {}, "description": "Deprecated. Utilities for ES3, most of which have been adopted or superseded in ES5.1. Adapted from Douglas Crockford's Remedial JavaScript", + "homepage": "https://git.coolaj86.com/coolaj86/remedial.js", "engines": { "node": "*" }, @@ -15,9 +16,7 @@ "supplant", "trim" ], - "lib": "lib", - "main": "./lib/remedial", + "main": "./remedial", "name": "remedial", - "homepage": "https://git.coolaj86.com/coolaj86/remedial.js", - "version": "1.0.5" + "version": "1.0.6" } diff --git a/lib/remedial.js b/remedial.js similarity index 95% rename from lib/remedial.js rename to remedial.js index 494fca5..5dba47f 100644 --- a/lib/remedial.js +++ b/remedial.js @@ -10,8 +10,10 @@ var provide = provide || function () {}, class2type = {}; for (i in classes) { - name = classes[i]; - class2type["[object " + name + "]"] = name.toLowerCase(); + if (classes.hasOwnProperty(i)) { + name = classes[i]; + class2type["[object " + name + "]"] = name.toLowerCase(); + } } function typeOf(obj) {