From 131db4b8dfa26eab9185fba3b58cee6c8b0cfbff Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Fri, 18 Jan 2013 03:06:39 +0800 Subject: [PATCH] Load jQuery from global namespace first. This fixes the cases wherein you may be using an AMD system, but load jQuery outside AMD. --- src/jquery.turbolinks.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.turbolinks.coffee b/src/jquery.turbolinks.coffee index 405e608..fac0482 100644 --- a/src/jquery.turbolinks.coffee +++ b/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 = []