diff --git a/lib/phantomscript.js b/lib/phantomscript.js index 05cd881995a..890e301feb4 100644 --- a/lib/phantomscript.js +++ b/lib/phantomscript.js @@ -46,7 +46,6 @@ var options = { , width: width } , log = logger(options.verbose) - options.sequenceConfig.useMaxWidth = false; page.content = [ @@ -212,7 +211,7 @@ function executeInPage(data) { var xmlSerializer = new XMLSerializer() , contents = data.contents , sequenceConfig = JSON.stringify(data.sequenceConfig) - , ganttConfig = data.ganttConfig + , ganttConfig = JSON.stringify(data.ganttConfig).replace(/"(function.*)}"/, "$1") , toRemove , el , elContent