removed 'provide' for Ender's sake

This commit is contained in:
AJ ONeal 2011-08-25 10:58:45 -06:00
parent 7406c6b8dd
commit 2c64287b54
2 changed files with 9 additions and 11 deletions

View File

@ -1,13 +1,13 @@
/*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";
var classes = "Boolean Number String Function Array Date RegExp Object".split(" "),
i,
name,
class2type = {};
var global = Function('return this')()
, classes = "Boolean Number String Function Array Date RegExp Object".split(" ")
, i
, name
, class2type = {}
;
for (i in classes) {
if (classes.hasOwnProperty(i)) {
@ -95,13 +95,11 @@ var provide = provide || function () {},
};
}
// Boiler Plate
if ('undefined' === typeof module) { module = {}; }
// CommonJS / npm / Ender.JS
module.exports = {
typeOf: typeOf,
isEmpty: isEmpty
};
global.typeOf = global.typeOf || typeOf;
global.isEmpty = global.isEmpty || isEmpty;
provide('remedial');
}());

View File

@ -6,6 +6,6 @@
"author" : "Douglas Crockford <douglas@crockford.com>",
"contributors" : ["AJ ONeal <coolaj86@gmail.com>"],
"dependencies" : [],
"main" : "./remedial",
"version" : "1.0.6"
"main" : "./index",
"version" : "1.0.7"
}