diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index d9f58b76d46..bf1eea711a5 100644 --- a/app/views/common/_discourse_javascript.html.erb +++ b/app/views/common/_discourse_javascript.html.erb @@ -22,7 +22,7 @@ Discourse.BaseUri = '<%= Discourse::base_uri "/" %>'; Discourse.Environment = '<%= Rails.env %>'; Discourse.Router.map(function() { - return Discourse.routeBuilder.call(this); + Discourse.routeBuilder.call(this); }); Discourse.start() diff --git a/test/javascripts/test_helper.js b/test/javascripts/test_helper.js index 3ce62b99329..3093140ca20 100644 --- a/test/javascripts/test_helper.js +++ b/test/javascripts/test_helper.js @@ -71,7 +71,7 @@ Discourse.injectTestHelpers(); Discourse.bindDOMEvents(); Discourse.Router.map(function() { - return Discourse.routeBuilder.call(this); + Discourse.routeBuilder.call(this); });