Fixing iron:router issue with latest Chrome version
This commit is contained in:
1 parent
3734b5f31a
commit
6f23c7163a
20 files changed
+1074
-4
No files matched your search
@@ -0,0 +1,29 @@
|
||||
stack = new Iron.MiddlewareStack;
|
||||
|
||||
printUrls = function (name, thisArg) {
|
||||
console.log('%c***********************', 'color: orange;');
|
||||
console.log("<" + name + "> this.originalUrl: " + JSON.stringify(thisArg.originalUrl));
|
||||
console.log("<" + name + "> this.url: " + JSON.stringify(thisArg.url));
|
||||
console.log('%c***********************', 'color: orange;');
|
||||
};
|
||||
|
||||
stack.push(function m1 () {
|
||||
printUrls('m1', this);
|
||||
this.next();
|
||||
});
|
||||
|
||||
stack.push(function m2 () {
|
||||
printUrls('m2', this);
|
||||
this.next();
|
||||
});
|
||||
|
||||
stack.push('/admin', function adminApp () {
|
||||
printUrls('adminApp', this);
|
||||
}, {mount: true});
|
||||
|
||||
console.log('%cDispatch "/"', 'color: blue;');
|
||||
stack.dispatch('/', {});
|
||||
|
||||
console.log('');
|
||||
console.log('%cDispatch "/admin"', 'color: blue;');
|
||||
stack.dispatch('/admin', {});
|
||||
Reference in new issue
Block a user