Permalink
Browse files

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

  • Loading branch information...
tilgovi committed Jul 11, 2012
1 parent 8bfcbfc commit b83d51d164f8decdf19bdc2b230f3ce78fc431fc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/extensions.coffee
View
@@ -97,4 +97,5 @@ $.fn.escape = (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.