stopPropagation doesn't work with pinot.events/on. #19

Open
hozumi opened this Issue Jan 6, 2012 · 0 comments

Projects

None yet

1 participant

@hozumi
hozumi commented Jan 6, 2012

Hi,
It seems that stopPropagation doesn't work when a function is registered by pinot.events/on.

(pinot.events/on (pinot.dom/query "#mydiv") :click
            (fn [target e]
              (. e (stopPropagation))
              (. js/console  (log "mydiv"))))

(pinot.events/on (pinot.dom/query "body") :click
            (fn []
              (. js/console  (log "body"))))

console

mydiv
body

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment