Skip to content
This repository
Browse code

fix $.fn.reverse when prototype.js is present

  • Loading branch information...
commit b83d51d164f8decdf19bdc2b230f3ce78fc431fc 1 parent 8bfcbfc
Randall Leeds authored July 11, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  src/extensions.coffee
3  src/extensions.coffee
@@ -97,4 +97,5 @@ $.fn.escape = (html) ->
97 97
 
98 98
   this.html()
99 99
 
100  
-$.fn.reverse = [].reverse
  100
+# Create a jQuery reverse function, but watch out for prototype.js
  101
+$.fn.reverse = []._reverse or [].reverse

0 notes on commit b83d51d

Please sign in to comment.
Something went wrong with that request. Please try again.