Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[jsfm] fix: judge if event is not defined (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
imyzf authored and Hanks10100 committed Jan 3, 2019
1 parent 1866fe9 commit 9434662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/bridge/receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function fireEvent (document, nodeId, type, event, domChanges, params) {
const el = document.getRef(nodeId)
if (el) {
return document.fireEvent(el, type, event, domChanges, params)
} else {
} else if (event) {
event._nodeId = nodeId
return document.fireEvent(document.getRef('_documentElement'), type, event, domChanges, params)
}
Expand Down

0 comments on commit 9434662

Please sign in to comment.