diff --git a/lib/client.js b/lib/client.js index 9d90ccd..94f5932 100644 --- a/lib/client.js +++ b/lib/client.js @@ -6,12 +6,12 @@ You can listen for page changes by writing something like this: - $(window).on('action:ajaxify.end', function(data) { - var url = data.url; + $(window).on('action:ajaxify.end', function(ev, data) { + var url = data.url; console.log('I am now at: ' + url); }); */ $(document).ready(function() { // Your code goes here -}); \ No newline at end of file +});