Skip to content
Browse files

Load jQuery from global namespace first.

This fixes the cases wherein you may be using an AMD system, but load jQuery outside AMD.
  • Loading branch information...
1 parent c187938 commit 131db4b8dfa26eab9185fba3b58cee6c8b0cfbff @rstacruz rstacruz committed Jan 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery.turbolinks.coffee
View
2 src/jquery.turbolinks.coffee
@@ -8,7 +8,7 @@
Copyright (c) 2012 Sasha Koss
###
-$ = require?('jquery') || window.jQuery
+$ = window.jQuery or require?('jquery')
# List for store callbacks passed to `$` or `$.ready`
callbacks = []

0 comments on commit 131db4b

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