dancrew32 / AWESOME-JS

A Lightweight JavaScript Framework that performs common tasks (IE6, 7, 8, FF, WK, Opera)
awesomejs
2 stars 0 forks source link

simplify insertAfter #10

Closed dancrew32 closed 13 years ago

dancrew32 commented 13 years ago

insertAfter: function (p, node, refNode) { p.insertBefore(node, refNode.nextSibling); },

can be

insertAfter: function (node, refNode) { node.parentNode.insertBefore(node, refNode.nextSibling); },

dancrew32 commented 13 years ago

https://github.com/dancrew32/AWESOME-JS/commit/77e6aa5ee55174e12d403429fdcbaf6fc8203ac2