Skip to content

Commit

Permalink
feat: support disable delegate event, ksc-fe/kpc#353
Browse files Browse the repository at this point in the history
  • Loading branch information
Javey committed Nov 25, 2019
1 parent ef0bf2f commit ea54787
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ function handleEvent(name, lastEvent, nextEvent, dom) {
name = 'propertychange';
}

if (config.disableDelegate || !unDelegatesEvents[name]) {
if (!config.disableDelegate && !unDelegatesEvents[name]) {
var delegatedRoots = delegatedEvents[name];

if (nextEvent) {
Expand Down
2 changes: 1 addition & 1 deletion dist/misstime.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function handleEvent(name, lastEvent, nextEvent, dom) {
name = 'propertychange';
}

if (config.disableDelegate || !unDelegatesEvents[name]) {
if (!config.disableDelegate && !unDelegatesEvents[name]) {
var delegatedRoots = delegatedEvents[name];

if (nextEvent) {
Expand Down
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function handleEvent(name, lastEvent, nextEvent, dom) {
name = 'propertychange';
}

if (config.disableDelegate || !unDelegatesEvents[name]) {
if (!config.disableDelegate && !unDelegatesEvents[name]) {
let delegatedRoots = delegatedEvents[name];

if (nextEvent) {
Expand Down

0 comments on commit ea54787

Please sign in to comment.