Created
November 4, 2011 00:09
-
-
Save jhummel/1338318 to your computer and use it in GitHub Desktop.
Make ujs-jquery for rails work with Zepto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix to make zepto work with ujs-jquery | |
$.fn.ajaxSend = function(callback) { | |
return this.each(function(){ | |
$(this).on('ajaxBeforeSend', callback); | |
}); | |
}; | |
var jQuery = $; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for you tips, but I still miss the exception:
Any suggestions ?