diff --git a/lib/routie.js b/lib/routie.js index 55071ba..abc83ad 100644 --- a/lib/routie.js +++ b/lib/routie.js @@ -106,8 +106,8 @@ addHandler(p, path[p]); } routie.reload(); - } else if (typeof fn === 'undefined') { - routie.navigate(path); + } else if (typeof fn === 'undefined' || typeof fn == 'object') { + routie.navigate(path, fn); } };