Skip to content

Commit

Permalink
Bootstrap compat: implement detach()
Browse files Browse the repository at this point in the history
References #642
  • Loading branch information
mislav committed Nov 13, 2012
1 parent a02f280 commit 228337f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zepto.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ var Zepto = (function() {
}
}

// for now
$.fn.detach = $.fn.remove

// Generate the `width` and `height` functions
;['width', 'height'].forEach(function(dimension){
$.fn[dimension] = function(value){
Expand Down

0 comments on commit 228337f

Please sign in to comment.