Skip to content

Commit

Permalink
Fix #7276: nw2: document-end event
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Dec 18, 2019
1 parent 0eafbb9 commit 4768567
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/resources/api_nw_newwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -749,13 +749,11 @@ function onLoadingStateChanged(status) {
}

function onDocumentStartEnd(start, frame, top_routing_id) {
if (!currentNWWindow)
return;
if (start) {
dispatchEventIfExists(currentNWWindow, "onDocumentStart", [frame, top_routing_id]);
dispatchEventIfExists(NWWindow.prototype, "onDocumentStart", [frame, top_routing_id]);
}
else
dispatchEventIfExists(currentNWWindow, "onDocumentEnd", [frame, top_routing_id]);
dispatchEventIfExists(NWWindow.prototype, "onDocumentEnd", [frame, top_routing_id]);
}

function updateAppWindowZoom(old_level, new_level) {
Expand Down

0 comments on commit 4768567

Please sign in to comment.