Skip to content

Commit a3bf590

Browse files
committed
Merge pull request #144 from shakacode/justin808-change-to-applicationjs-order
Update application.js
2 parents 9fa5ad3 + 9021e8e commit a3bf590

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/assets/javascripts/application.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
1111
// about supported directives.
1212

13-
// Need to be on top to allow Poltergeist test to work with React: es5-shim/es5-shim. This is lincluded in app-bundle.
14-
//= require react_on_rails
15-
16-
// It is important that generated/vendor-bundle must be before bootstrap since it is exposing jQuery and jQuery-ujs
13+
// CRITICAL that generated/vendor-bundle must be BEFORE bootstrap-sprockets and turbolinks since it is
14+
// exposing jQuery and jQuery-ujs
1715
//= require generated/vendor-bundle
1816
//= require generated/app-bundle
1917

20-
//= require bootstrap-sprockets
18+
// Next two depend on jQuery
2119
//= require turbolinks
20+
//= require bootstrap-sprockets
21+
22+
//= require react_on_rails
2223

24+
// TODO: move to this separate file.
2325
$(document).on('ready page:load', function () {
2426
$('nav a').parents('li,ul').removeClass('active');
2527
$('nav a[href="' + this.location.pathname + '"]').parents('li,ul').addClass('active');

0 commit comments

Comments
 (0)