From f699022963bc36b83026cb9be480e12b26edccf6 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Mon, 14 Nov 2016 11:01:03 +0000 Subject: [PATCH 1/2] Fixed the path to the plugins object. Issue 91 on the edition-node-gulp repo --- core/lib/ui_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/ui_builder.js b/core/lib/ui_builder.js index c8b5be431..cb36b5215 100644 --- a/core/lib/ui_builder.js +++ b/core/lib/ui_builder.js @@ -536,7 +536,7 @@ var ui_builder = function () { output += 'var viewAllPaths = ' + JSON.stringify(patternlab.viewAllPaths) + ';' + eol; //plugins - output += 'var plugins = ' + JSON.stringify(patternlab.plugins) + ';' + eol; + output += 'var plugins = ' + JSON.stringify(patternlab.config.plugins) + ';' + eol; //smaller config elements output += 'var defaultShowPatternInfo = ' + (patternlab.config.defaultShowPatternInfo ? patternlab.config.defaultShowPatternInfo : 'false') + ';' + eol; From ccaa25d8aa69f2b8c538636734ef7006f3770920 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Tue, 15 Nov 2016 14:42:32 +0000 Subject: [PATCH 2/2] Updated to catch issue with undefined plugins array --- core/lib/ui_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/ui_builder.js b/core/lib/ui_builder.js index cb36b5215..0195ab040 100644 --- a/core/lib/ui_builder.js +++ b/core/lib/ui_builder.js @@ -536,7 +536,7 @@ var ui_builder = function () { output += 'var viewAllPaths = ' + JSON.stringify(patternlab.viewAllPaths) + ';' + eol; //plugins - output += 'var plugins = ' + JSON.stringify(patternlab.config.plugins) + ';' + eol; + output += 'var plugins = ' + JSON.stringify(patternlab.plugins || []) + ';' + eol; //smaller config elements output += 'var defaultShowPatternInfo = ' + (patternlab.config.defaultShowPatternInfo ? patternlab.config.defaultShowPatternInfo : 'false') + ';' + eol;