Closed arisAlexis closed 8 years ago
this._router.add('posts/add',this._auth,(req,event)=> { event.stopPropagation(); new PostNewView(); }); this._router.add('posts/:postId',(req)=>new SinglePostView({postId:req.params.postId}));
this works as expected only if this._auth is removed
@arisAlexis this._auth is already ran before the middleware that you're defining (the one with the stopPropagation() call) has already happened.
this._auth
stopPropagation()
this works as expected only if this._auth is removed