remove unnecessary return statement inside Discourse.Router.map

Ember's Router.map(callback) method doesn't expect any value to be
returned by callback function. Therefore, return statements present
inside Discourse.Router.map are unnecessary (and are silently ignored by
Ember).
This commit is contained in:
Wojciech Zawistowski 2013-09-19 17:26:43 +02:00
parent 748ef94ce0
commit cd3a2143d2
2 changed files with 2 additions and 2 deletions

View File

@ -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()
</script>

View File

@ -71,7 +71,7 @@ Discourse.injectTestHelpers();
Discourse.bindDOMEvents();
Discourse.Router.map(function() {
return Discourse.routeBuilder.call(this);
Discourse.routeBuilder.call(this);
});