bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-12-11 04:54:28 +03:00
parent e19d04bfd2
commit 19aedcc8cb

View File

@ -79,6 +79,7 @@ var URLHistoryActions = actions.Actions({
// rather than fully rewriting it... // rather than fully rewriting it...
pushURLToHistory: ['- History/', pushURLToHistory: ['- History/',
function(url, open, check, clear){ function(url, open, check, clear){
url = url || this.location.path
var l = this.config['url-history-length'] || -1 var l = this.config['url-history-length'] || -1
if(l == 0){ if(l == 0){
@ -88,7 +89,6 @@ var URLHistoryActions = actions.Actions({
this.url_history = this.url_history || {} this.url_history = this.url_history || {}
var item = !clear ? (this.url_history[url] || {}) : {} var item = !clear ? (this.url_history[url] || {}) : {}
url = url || this.location.path
open = item.open = open || this.location.method open = item.open = open || this.location.method
check = item.check = check || 'checkPath' check = item.check = check || 'checkPath'