@cicada/message
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -157,5 +157,7 @@ 'use strict'; | ||
// 如果没有监听到事件,就冒泡透传 | ||
if (!hitEvent) { | ||
dispatch(message.event, message.data, message.toParent); | ||
} | ||
// dispath 里的逻辑时 toParent 为 true 则向上透传,为 false 则向下分发 | ||
// 所以 listener 里的这句代码会造成 父发-子听-子发-父听 的死循环 | ||
// if (!hitEvent) { | ||
// dispatch(message.event, message.data, message.toParent) | ||
// } | ||
} | ||
@@ -162,0 +164,0 @@ }, false); |
{ | ||
"name": "@cicada/message", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "cicada message", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -129,5 +129,7 @@ import { generateUUID } from './utils' | ||
// 如果没有监听到事件,就冒泡透传 | ||
if (!hitEvent) { | ||
dispatch(message.event, message.data, message.toParent) | ||
} | ||
// dispath 里的逻辑时 toParent 为 true 则向上透传,为 false 则向下分发 | ||
// 所以 listener 里的这句代码会造成 父发-子听-子发-父听 的死循环 | ||
// if (!hitEvent) { | ||
// dispatch(message.event, message.data, message.toParent) | ||
// } | ||
} | ||
@@ -134,0 +136,0 @@ }, false) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19321
392