Skip to content

Commit

Permalink
detach should use each() instead of this.map()
Browse files Browse the repository at this point in the history
  • Loading branch information
amccollum committed May 7, 2012
1 parent c8ebf62 commit 865c34c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bonzo.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@
}

, detach: function () {
return this.map(function (el) {
return el[parentNode].removeChild(el)
return this.each(function (el) {
el[parentNode].removeChild(el)
})
}

Expand Down
Loading

0 comments on commit 865c34c

Please sign in to comment.