diff --git a/demo_dynamic_journey.xml b/demo_dynamic_journey.xml new file mode 100644 index 0000000..51f4165 --- /dev/null +++ b/demo_dynamic_journey.xml @@ -0,0 +1,292 @@ + + + ShoeMarket + Selling Shoes + + + +
+ + + Please Select Your Shoes Colour + + +
+ + + + + +
+
+
+
\ No newline at end of file diff --git a/djs.js b/djs.js index 8e24a1c..e879ac7 100644 --- a/djs.js +++ b/djs.js @@ -31,7 +31,7 @@ class DJS { get next() { if (this.menuIndex != 0 && 'options' in this.activeInstructions) { let instructions = this.activeInstructions['options']['optionslist']['option'][this.menuIndex-1]['instructions']; - this.activeInstructions = instructions; + this.activeInstructions = this.instructions = instructions; } this.buildMenus();