From 4c3d6a2c05236aa7a07378ddd71b0b0bf122f45c Mon Sep 17 00:00:00 2001 From: Daniel Janus Date: Tue, 21 Aug 2018 13:38:05 +0200 Subject: [PATCH] Pass history event's isNavigation attribute to dispatch-fn. --- project.clj | 2 +- src/pushy/core.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 21d71bf..9821e02 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject kibu/pushy "0.3.8" +(defproject kibu/pushy "0.3.9-SNAPSHOT" :description "HTML5 pushState for Clojurescript" :url "https://github.com/kibu-australia/pushy" :license {:name "Eclipse Public License" diff --git a/src/pushy/core.cljs b/src/pushy/core.cljs index 10c0d17..142e63b 100644 --- a/src/pushy/core.cljs +++ b/src/pushy/core.cljs @@ -88,7 +88,7 @@ (events/listen history EventType.NAVIGATE (fn [e] (when-let [match (-> (.-token e) match-fn identity-fn)] - (dispatch-fn match))))) + (dispatch-fn match (.-isNavigation e)))))) ;; Dispatch on initialization (when-let [match (-> (get-token this) match-fn identity-fn)]