From 5f6087d65dddebf41f53bbf0def0f68ca69e32b6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 27 Feb 2011 12:35:11 -0700 Subject: [PATCH] updated to 'use strict'; properly --- lib/remedial.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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" }