Permalink
Browse files

Readme: move the Zurb info to the Troubleshooting section. #35

  • Loading branch information...
1 parent dfae6f6 commit 14496cb1e465afde08a7e467e56b85474cf1623e @rstacruz rstacruz committed Feb 12, 2014
Showing with 18 additions and 16 deletions.
  1. +18 −16 README.md
View
@@ -39,22 +39,6 @@ Add it to your JavaScript manifest file, in this order:
And it just works!
-NOTE: Those who use foundation, the `$(function(){ $(document).foundation(); });` has to come before the turbolinks gem.
-
-``` js
-//= require jquery
-//= require jquery.turbolinks
-//= require jquery_ujs
-//
-// ... your other scripts here ...
-
-$(function(){ $(document).foundation(); });
-
-//
-//= require turbolinks
-```
-
-
## API and Customization
### $.turbo.use
@@ -73,6 +57,24 @@ either `true` or `false` depending on whether the page is loading.
## Troubleshooting
+### Zurb Foundation
+
+The `$(function(){ $(document).foundation(); });` has to come before the
+turbolinks gem.
+
+``` js
+//= require jquery
+//= require jquery.turbolinks
+//= require jquery_ujs
+//
+// ... your other scripts here ...
+
+$(function(){ $(document).foundation(); });
+
+//
+//= require turbolinks
+```
+
### Events firing twice or more
If you find that some events are being fired multiple times after using jQuery Turbolinks, you may have been binding your `document` events inside a `$(function())` block. For instance, this example below can be a common occurrence and should be avoided:

0 comments on commit 14496cb

Please sign in to comment.