capybara-router
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -17,2 +17,3 @@ (function() { | ||
loadComponent {Function} | ||
dismissalDelay {Number} | ||
@param parent {Route} | ||
@@ -43,2 +44,3 @@ @returns {Object} | ||
this.loadComponent = args.loadComponent; | ||
this.dismissalDelay = args.dismissalDelay; | ||
if (parent) { | ||
@@ -45,0 +47,0 @@ this.uriParamKeys = ((ref2 = parent.uriParamKeys) != null ? ref2.slice() : void 0) || []; |
@@ -206,3 +206,3 @@ (function() { | ||
return function(resolveData) { | ||
var base, base1, props; | ||
var base, base1, dismiss, props; | ||
_this.currentRoute = nextRoute; | ||
@@ -219,8 +219,15 @@ _this.currentParams = params; | ||
} | ||
_this.views[changeViewIndex].name = null; | ||
_this.views[changeViewIndex].routerView.dispatch({ | ||
route: { | ||
component: null | ||
} | ||
}); | ||
dismiss = function() { | ||
_this.views[changeViewIndex].name = null; | ||
return _this.views[changeViewIndex].routerView.dispatch({ | ||
route: { | ||
component: null | ||
} | ||
}); | ||
}; | ||
if (previousRoute.dismissalDelay != null) { | ||
setTimeout(dismiss, previousRoute.dismissalDelay); | ||
} else { | ||
dismiss(); | ||
} | ||
} else { | ||
@@ -227,0 +234,0 @@ if (typeof (base1 = nextRouteChaining[changeViewIndex]).onEnter === "function") { |
{ | ||
"name": "capybara-router", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Unfancy react router without flux and redux.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
598384
2104