Skip to content

Commit

Permalink
Use $.fn.ready() (reverts 724d550)
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed Nov 7, 2016
1 parent fb19145 commit e7fccbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ const routes = {
};

// Load Events
document.addEventListener('DOMContentLoaded', () => new Router(routes).loadEvents());
jQuery(document).ready(() => new Router(routes).loadEvents());

2 comments on commit e7fccbe

@metz0r
Copy link

@metz0r metz0r commented on e7fccbe Jan 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious why this revert was needed, could you explain why?

@QWp6t
Copy link
Member Author

@QWp6t QWp6t commented on e7fccbe Jan 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See: #1741

Please sign in to comment.