diff --git a/lib/remedial.js b/lib/remedial.js index 4561bfd..494fca5 100644 --- a/lib/remedial.js +++ b/lib/remedial.js @@ -1,4 +1,6 @@ /*jslint onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */ +var provide = provide || function () {}, + global = (function () {return this; }()); (function () { "use strict"; @@ -97,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 3dad8d1..02c1c36 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,5 @@ "dependencies" : [], "lib" : "lib", "main" : "./lib/remedial", - "version" : "1.0.4" + "version" : "1.0.5" }