Comparing version 2.1.3 to 2.1.4
@@ -51,3 +51,3 @@ //Copyright (C) 2012 Kory Nunn | ||
}, | ||
isNode = isType(Node, fn) ? function (object) { | ||
isNode = typeof Node === fn ? function (object) { | ||
return object instanceof Node; | ||
@@ -54,0 +54,0 @@ } : |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.crel=t()}(this,function(){function e(){var r,i=arguments,c=i[0],a=i[1],d=2,s=i.length,l=e.attrMap;if(c=e.isElement(c)?c:document.createElement(c),1===s)return c;if((!o(a,n)||e.isNode(a)||f(a))&&(--d,a=null),s-d===1&&o(i[d],"string")&&void 0!==c.textContent)c.textContent=i[d];else for(;s>d;++d)if(r=i[d],null!=r)if(f(r))for(var p=0;p<r.length;++p)u(c,r[p]);else u(c,r);for(var m in a)if(l[m]){var y=e.attrMap[m];typeof y===t?y(c,a[m]):c.setAttribute(y,a[m])}else c.setAttribute(m,a[m]);return c}var t="function",n="object",o=function(e,t){return typeof e===t},r=o(Node,t)?function(e){return e instanceof Node}:function(e){return e&&o(e,n)&&"nodeType"in e&&o(e.ownerDocument,n)},i=function(t){return e.isNode(t)&&1===t.nodeType},f=function(e){return e instanceof Array},u=function(e,t){i(t)||(t=document.createTextNode(t)),e.appendChild(t)};return e.attrMap={},e.isElement=i,e.isNode=r,e}); | ||
!function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.crel=t()}(this,function(){function e(){var r,i=arguments,c=i[0],a=i[1],d=2,s=i.length,l=e.attrMap;if(c=e.isElement(c)?c:document.createElement(c),1===s)return c;if((!o(a,n)||e.isNode(a)||f(a))&&(--d,a=null),s-d===1&&o(i[d],"string")&&void 0!==c.textContent)c.textContent=i[d];else for(;s>d;++d)if(r=i[d],null!=r)if(f(r))for(var p=0;p<r.length;++p)u(c,r[p]);else u(c,r);for(var m in a)if(l[m]){var y=e.attrMap[m];typeof y===t?y(c,a[m]):c.setAttribute(y,a[m])}else c.setAttribute(m,a[m]);return c}var t="function",n="object",o=function(e,t){return typeof e===t},r=typeof Node===t?function(e){return e instanceof Node}:function(e){return e&&o(e,n)&&"nodeType"in e&&o(e.ownerDocument,n)},i=function(t){return e.isNode(t)&&1===t.nodeType},f=function(e){return e instanceof Array},u=function(e,t){i(t)||(t=document.createTextNode(t)),e.appendChild(t)};return e.attrMap={},e.isElement=i,e.isNode=r,e}); |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"main": "crel.js", | ||
@@ -11,0 +11,0 @@ "dependencies": {}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20092