Closed vendethiel closed 11 years ago
@visionmedia I used removeChild() because that's what jquery is doing. I have no idea why OTTOMH, do you ?
weird maybe it is faster then (havent benched, too early for that), sounds good then!
actually this one was the ok one - no need for the other pr since you did it yourself
yup this is all good, just needs a rebase
Voilà, the conflict was on readme
thanks!
weird maybe it is faster then (havent benched, too early for that), sounds good then!
Definitely faster.
http://jsperf.com/emptify-element/2 innerHTML = null : 1,890Ops firstChild.remove() : 61,250,827Ops
I think we can import some more methods (allow .html() to set innerHTML, for example) and I can do a bigger PR if you want. Maybe use component/css ?