Skip to content

Commit

Permalink
fix $.fn.reverse when prototype.js is present
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Jul 11, 2012
1 parent 8bfcbfc commit b83d51d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extensions.coffee
Expand Up @@ -97,4 +97,5 @@ $.fn.escape = (html) ->


this.html() this.html()


$.fn.reverse = [].reverse # Create a jQuery reverse function, but watch out for prototype.js
$.fn.reverse = []._reverse or [].reverse

0 comments on commit b83d51d

Please sign in to comment.