removed 'provide' for Ender's sake
This commit is contained in:
parent
7406c6b8dd
commit
2c64287b54
|
@ -1,13 +1,13 @@
|
||||||
/*jslint onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */
|
/*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 () {
|
(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var classes = "Boolean Number String Function Array Date RegExp Object".split(" "),
|
var global = Function('return this')()
|
||||||
i,
|
, classes = "Boolean Number String Function Array Date RegExp Object".split(" ")
|
||||||
name,
|
, i
|
||||||
class2type = {};
|
, name
|
||||||
|
, class2type = {}
|
||||||
|
;
|
||||||
|
|
||||||
for (i in classes) {
|
for (i in classes) {
|
||||||
if (classes.hasOwnProperty(i)) {
|
if (classes.hasOwnProperty(i)) {
|
||||||
|
@ -95,13 +95,11 @@ var provide = provide || function () {},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Boiler Plate
|
// CommonJS / npm / Ender.JS
|
||||||
if ('undefined' === typeof module) { module = {}; }
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
typeOf: typeOf,
|
typeOf: typeOf,
|
||||||
isEmpty: isEmpty
|
isEmpty: isEmpty
|
||||||
};
|
};
|
||||||
global.typeOf = global.typeOf || typeOf;
|
global.typeOf = global.typeOf || typeOf;
|
||||||
global.isEmpty = global.isEmpty || isEmpty;
|
global.isEmpty = global.isEmpty || isEmpty;
|
||||||
provide('remedial');
|
|
||||||
}());
|
}());
|
|
@ -6,6 +6,6 @@
|
||||||
"author" : "Douglas Crockford <douglas@crockford.com>",
|
"author" : "Douglas Crockford <douglas@crockford.com>",
|
||||||
"contributors" : ["AJ ONeal <coolaj86@gmail.com>"],
|
"contributors" : ["AJ ONeal <coolaj86@gmail.com>"],
|
||||||
"dependencies" : [],
|
"dependencies" : [],
|
||||||
"main" : "./remedial",
|
"main" : "./index",
|
||||||
"version" : "1.0.6"
|
"version" : "1.0.7"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue