From 0932c15e5c0c1beb1f7d14f895be800b1f52770e Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 3 May 2015 16:56:27 +0100 Subject: [PATCH] Clarify rendering parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit srcDocument.body.firstChild will in fact be null, but it’s clearer to write it out --- core/modules/startup/windows.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/startup/windows.js b/core/modules/startup/windows.js index 16a878b88..d2a5517e3 100644 --- a/core/modules/startup/windows.js +++ b/core/modules/startup/windows.js @@ -57,7 +57,7 @@ exports.startup = function() { // Render the text of the tiddler var parser = $tw.wiki.parseTiddler(template), widgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, parentWidget: $tw.rootWidget, variables: {currentTiddler: title}}); - widgetNode.render(srcDocument.body,null); + widgetNode.render(srcDocument.body,srcDocument.body.firstChild); // Function to handle refreshes refreshHandler = function(changes) { if(styleWidgetNode.refresh(changes,styleContainer,null)) {