Merge pull request #1358 from aelocson/fix-1357

Fix #1357: Railroad plugin under Node.js
print-window-tiddler
Jeremy Ruston 2015-01-11 19:57:36 +00:00
commit 33603e1bd2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -74,7 +74,7 @@ RailroadWidget.prototype.renderSvg = function(parser,div) {
RailroadWidget.prototype.patchLinks = function(node) {
var self = this;
if(node.hasChildNodes()) {
if(!$tw.node && node.hasChildNodes()) {
var children = node.childNodes;
for(var i=0; i<children.length; i++) {
var child = children[i];