Github user robertkowalski commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/820#discussion_r91296286
--- Diff: app/core/router.js ---
@@ -48,32 +49,35 @@ export default Backbone.Router.extend({
},
addModuleRouteObject: function (RouteObject) {
- var that = this;
- var masterLayout = FauxtonAPI.masterLayout,
- routeUrls = RouteObject.prototype.getRouteUrls();
+ const that = this;
+ const routeUrls = RouteObject.prototype.getRouteUrls();
- _.each(routeUrls, function (route) {
- this.route(route, route.toString(), function () {
- var args = Array.prototype.slice.call(arguments),
- roles = RouteObject.prototype.getRouteRoles(route),
- authPromise = FauxtonAPI.auth.checkAccess(roles);
+ routeUrls.forEach(route => {
+ this.route(route, route.toString(), (...args) => {
+ //const args = Array.prototype.slice.call(arguments),
--- End diff --
delete comment
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---