kupriyanenko/jbone — pull request #19 by Tolia (2013-11-22 09:42:42+00:00)
Title: adding a new method 'replaceWith'

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:

```html

first
second

```
The second element could be replaced with new element

``` javascript
newEl = jBone('second')
jBone('.second').replaceWith(newEl)
```

This results in the structure:
```html

first
second

```

`replaceWith` works with jBone and with DOM elements