changeset 2941:cccb9c312b5d

#241 Fixed repeatCount inactive
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 25 Sep 2017 09:35:00 +0100
parents 8805556c0f42
children 8c7d5ee1b906
files js/specification.js
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/js/specification.js	Thu Sep 14 13:10:51 2017 +0100
+++ b/js/specification.js	Mon Sep 25 09:35:00 2017 +0100
@@ -173,6 +173,12 @@
             var node = new page(this);
             node.decode(this, pageTags[i], pageSchema);
             this.pages.push(node);
+            for (var r = 0; r < node.repeatCount; r++) {
+                var repeat = new page(this);
+                repeat.decode(this, pageTags[i], pageSchema);
+                repeat.id += "-repeat-" + r;
+                this.pages.push(repeat);
+            }
         }
     };