Skip to content

Commit bf5f11c

Browse files
committed
Allow virtualization to set up link click listeners
1 parent 1d28cd6 commit bf5f11c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Elm/Kernel/Browser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ var _Browser_document = __Debugger_document || F4(function(impl, flagDecoder, de
7575
var view = impl.__$view;
7676
var title = __VirtualDom_doc.title;
7777
var bodyNode = __VirtualDom_doc.body;
78+
__VirtualDom_divertHrefToApp = divertHrefToApp;
7879
var currNode = _VirtualDom_virtualize(bodyNode);
80+
__VirtualDom_divertHrefToApp = 0;
7981
return _Browser_makeAnimator(initialModel, function(model)
8082
{
8183
__VirtualDom_divertHrefToApp = divertHrefToApp;

src/Elm/Kernel/Debugger.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ var _Debugger_document = F4(function(impl, flagDecoder, debugMetadata, args)
113113
var view = impl.__$view;
114114
var title = __VirtualDom_doc.title;
115115
var bodyNode = __VirtualDom_doc.body;
116+
__VirtualDom_divertHrefToApp = divertHrefToApp;
116117
var currNode = __VirtualDom_virtualize(bodyNode);
118+
__VirtualDom_divertHrefToApp = 0;
117119
var currBlocker = __Main_toBlockerType(initialModel);
118120
var currPopout;
119121

0 commit comments

Comments
 (0)