Skip to content

Fix debugger virtualization #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Elm/Kernel/Debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ var _Debugger_element = F4(function(impl, flagDecoder, debugMetadata, args)
function(sendToApp, initialModel)
{
var view = impl.__$view;
var title = __VirtualDom_doc.title;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable was unused. I stumbled upon it while doing the change just below.

var domNode = args && args['node'] ? args['node'] : __Debug_crash(0);
var currNode = __VirtualDom_virtualize(domNode);
var currBlocker = __Main_toBlockerType(initialModel);
Expand Down Expand Up @@ -87,7 +86,7 @@ var _Debugger_element = F4(function(impl, flagDecoder, debugMetadata, args)
// view popout

__VirtualDom_doc = model.__$popout.__doc; // SWITCH TO POPOUT DOC
currPopout || (currPopout = __VirtualDom_virtualize(model.__$popout.__doc));
currPopout || (currPopout = __VirtualDom_virtualize(model.__$popout.__doc.body));
var nextPopout = __Main_popoutView(model);
var popoutPatches = __VirtualDom_diff(currPopout, nextPopout);
__VirtualDom_applyPatches(model.__$popout.__doc.body, currPopout, popoutPatches, sendToApp);
Expand Down Expand Up @@ -146,7 +145,7 @@ var _Debugger_document = F4(function(impl, flagDecoder, debugMetadata, args)
if (!model.__$popout.__doc) { currPopout = undefined; return; }

__VirtualDom_doc = model.__$popout.__doc; // SWITCH TO POPOUT DOC
currPopout || (currPopout = __VirtualDom_virtualize(model.__$popout.__doc));
currPopout || (currPopout = __VirtualDom_virtualize(model.__$popout.__doc.body));
var nextPopout = __Main_popoutView(model);
var popoutPatches = __VirtualDom_diff(currPopout, nextPopout);
__VirtualDom_applyPatches(model.__$popout.__doc.body, currPopout, popoutPatches, sendToApp);
Expand Down