merged with master

This commit is contained in:
AJ ONeal 2011-03-06 23:48:56 -07:00
commit 7406c6b8dd
2 changed files with 13 additions and 2 deletions

11
lib/package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name" : "remedial",
"description" : "Douglas Crockford's Remedial JavaScript",
"url" : "http://javascript.crockford.com/remedial.html",
"keywords" : ["util", "isEmpty", "typeOf", "entityify", "quote", "supplant", "trim"],
"author" : "Douglas Crockford <douglas@crockford.com>",
"contributors" : ["AJ ONeal <coolaj86@gmail.com>"],
"dependencies" : [],
"main" : "./remedial",
"version" : "1.0.6"
}

View File

@ -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";
@ -99,9 +101,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');
}());