From 3e66d00607bf6e7894a2fe743509de3dcba81204 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 9 May 2018 18:19:19 -0600 Subject: [PATCH] v1.0.5 --- lib/remedial.js | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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" }