Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

replaceWith() returns original (replaced) set

  • Loading branch information...
commit 8f78a3fe62816c554cc839de077afb06b82a7788 1 parent d4ec528
@rvagg rvagg authored
Showing with 3 additions and 11 deletions.
  1. +3 −7 src/bonzo.js
  2. +0 −4 src/ender.js
View
10 src/bonzo.js
@@ -531,15 +531,11 @@
/**
* @param {Bonzo|string|Element|Array} node
- * @param {Object=} opt_host an optional host scope (primarily used when integrated with Ender)
* @return {Bonzo}
*/
- , replaceWith: function (node, opt_host) {
- var ret = bonzo(this) // return replaced nodes
- , rep = bonzo(normalize(node)).insertAfter(this, opt_host)
- this.remove()
- Bonzo.call(opt_host || this, rep)
- return ret
+ , replaceWith: function (node) {
+ bonzo(normalize(node)).insertAfter(this)
+ return this.remove()
}
// class management
View
4 src/ender.js
@@ -90,10 +90,6 @@
return b(this.selector).insertBefore(t, this)
}
- , replaceWith: function (t) {
- return b(this.selector).replaceWith(t, this)
- }
-
, siblings: function () {
var i, l, p, r = []
for (i = 0, l = this.length; i < l; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.