Comparing version 0.1.1 to 0.1.2
17
index.js
@@ -1,2 +0,10 @@ | ||
var CreateElement = (function () { | ||
(function(root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define([], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory(); | ||
} else { | ||
root.CreateElement = factory(); | ||
} | ||
})(this, function () { | ||
var isDom = function (obj) { return obj instanceof Node } | ||
@@ -191,7 +199,2 @@ var c2d = function (str) { return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase() } | ||
return CreateElement | ||
})(); | ||
if (typeof module !== 'undefined') | ||
module.exports = CreateElement | ||
else if (typeof window !== 'undefined') | ||
window.CreateElement = CreateElement | ||
}); |
{ | ||
"name": "dominic", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Helper to quick build up simple DOM in simple javascript object format.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7652
191