diff --git a/lib/remedial.js b/lib/remedial.js index 74ec508..494fca5 100644 --- a/lib/remedial.js +++ b/lib/remedial.js @@ -1,6 +1,9 @@ /*jslint onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */ -"use strict"; +var provide = provide || function () {}, + global = (function () {return this; }()); (function () { + "use strict"; + var classes = "Boolean Number String Function Array Date RegExp Object".split(" "), i, name, @@ -96,9 +99,7 @@ typeOf: typeOf, isEmpty: isEmpty }; - if ('undefined' === typeof global) { global = window; } global.typeOf = global.typeOf || typeOf; global.isEmpty = global.isEmpty || isEmpty; - if ('undefined' === typeof provide) { provide = function () {}; } provide('remedial'); }()); diff --git a/package.json b/package.json index e7cdecb..d3ecfe5 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,5 @@ "main": "./lib/remedial", "name": "remedial", "homepage": "https://git.coolaj86.com/coolaj86/remedial.js", - "version": "1.0.3" + "version": "1.0.5" }