From 712275037f992e4295c9db119379a37324e055ce Mon Sep 17 00:00:00 2001 From: yafeilee Date: Sun, 7 Aug 2016 11:44:45 +0800 Subject: [PATCH] Trying to fix loading js async bug --- app/assets/javascripts/application.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 9217973..e43006a 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -8,6 +8,4 @@ //= require cable //= require_tree . -$(document).on('turbolinks:load', function(){ - $(document).foundation(); -}); +$(document).foundation();