Closed Tolia closed 10 years ago
I watch this repo for a week or so, and majority of issues/pulls seem to be "please add X". Isn't that what jquery is for? It already has everything.
@Tolia I can merge this pull request only in extend branch, because jBone primarily not replacement for jQuery.
Like hotfix you can include this code in your own project, and it will working.
@kupriyanenko ok, I redid https://github.com/kupriyanenko/jbone/pull/19
Did by analogy jquery
The
.replaceWith()
method removes content from the DOM and inserts new content in its place with a single call. Consider this DOM structure:The second element could be replaced with new element
This results in the structure:
replaceWith
works with jBone and with DOM elements