@xo-union/pagelet
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -178,4 +178,13 @@ module.exports = | ||
// Simple prepend ponyfill | ||
var prepend = function prepend(parent, child) { | ||
if (typeof parent.prepend === 'function') { | ||
parent.prepend(child); | ||
return; | ||
} | ||
parent.insertBefore(child, parent.firstChild); | ||
}; | ||
var isRendered = function isRendered(pageletContainer) { | ||
@@ -248,3 +257,3 @@ return pageletContainer.mountNode.getAttribute('data-pagelet-render-state') === 'ready'; | ||
mountNode.setAttribute('data-pagelet-role', 'mount-root'); | ||
rootNode.prepend(mountNode); | ||
prepend(rootNode, mountNode); | ||
} | ||
@@ -251,0 +260,0 @@ |
{ | ||
"name": "@xo-union/pagelet", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "lib/core/index.js", | ||
@@ -28,3 +28,3 @@ "scripts": { | ||
}, | ||
"gitHead": "5882b019f78ee4a1c4cbd8537b971e9e90669199" | ||
"gitHead": "3d6698f1e8928b4ee2af779ac8b8499f4717d687" | ||
} |
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
30933
503