From f5c8c46f6a1bb11df971e4afd98e0a53cf3b7456 Mon Sep 17 00:00:00 2001 From: Michele Belluco Date: Thu, 26 Mar 2015 18:15:57 +0100 Subject: [PATCH] bug fix refresh url --- bower.json | 2 +- lib/viewstack.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index f37d9d1..81c72a9 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "backbone.viewstack", - "version": "1.0.9", + "version": "1.0.10", "homepage": "https://github.com/vash15/backbone.viewstack", "authors": [ "Michele Belluco ", diff --git a/lib/viewstack.js b/lib/viewstack.js index c2c2480..b195d06 100644 --- a/lib/viewstack.js +++ b/lib/viewstack.js @@ -175,7 +175,7 @@ var ViewStack = module.exports = Backbone.View.extend({ url = url.join('/'); } - if ( context && context.page && typeof url == "string" ) + if ( context && context.page && typeof url == "string" && !_.isEmpty(url) ) context.page.navigate(url, { trigger: false }); return this;