diff --git a/views/js/pciCreator/dev/textReaderInteraction/pciCreator.json b/views/js/pciCreator/dev/textReaderInteraction/pciCreator.json index 75ab31a..a92789c 100644 --- a/views/js/pciCreator/dev/textReaderInteraction/pciCreator.json +++ b/views/js/pciCreator/dev/textReaderInteraction/pciCreator.json @@ -2,7 +2,7 @@ "typeIdentifier": "textReaderInteraction", "label": "Text reader", "description": "The Paging widget combines a scrolling widget with additional paging controls.", - "version": "0.9.1", + "version": "0.9.2", "author": "Aleh Hutnikau", "email": "contact@taotesting.com", "tags": [ diff --git a/views/js/pciCreator/dev/textReaderInteraction/runtime/js/renderer.js b/views/js/pciCreator/dev/textReaderInteraction/runtime/js/renderer.js index aa7e0ca..10b3a85 100644 --- a/views/js/pciCreator/dev/textReaderInteraction/runtime/js/renderer.js +++ b/views/js/pciCreator/dev/textReaderInteraction/runtime/js/renderer.js @@ -32,7 +32,7 @@ define( * * @param {String} html - the html to parse * @param {Object} renderer - * @returns {String} the html without updated URLs + * @returns {String} the html with fixed anchor targets */ var fixAnchorTargets = function(html, renderer) { html = html || ''; @@ -44,8 +44,8 @@ define( }); }; - return function (options) { - var self = this; + return function (options) { + var self = this; var defaultOptions = { state : 'sleep', templates : {}, @@ -178,7 +178,6 @@ define( $container, $pages, markup, - anchors, fixedMarkup, decorationHeight; @@ -197,7 +196,7 @@ define( ); fixedMarkup = fixAnchorTargets( - markup, + fixedMarkup, self.options.interaction.renderer ); } diff --git a/views/js/pciCreator/ims/textReaderInteraction/imsPciCreator.json b/views/js/pciCreator/ims/textReaderInteraction/imsPciCreator.json index edbac72..8dc43f4 100644 --- a/views/js/pciCreator/ims/textReaderInteraction/imsPciCreator.json +++ b/views/js/pciCreator/ims/textReaderInteraction/imsPciCreator.json @@ -3,7 +3,7 @@ "typeIdentifier": "textReaderInteraction", "label": "Text reader", "description": "The Paging widget combines a scrolling widget with additional paging controls.", - "version": "1.2.1", + "version": "1.2.2", "author": "Aleh Hutnikau", "email": "contact@taotesting.com", "tags": [ diff --git a/views/js/pciCreator/ims/textReaderInteraction/runtime/js/renderer.js b/views/js/pciCreator/ims/textReaderInteraction/runtime/js/renderer.js index 1936b1c..e97d814 100644 --- a/views/js/pciCreator/ims/textReaderInteraction/runtime/js/renderer.js +++ b/views/js/pciCreator/ims/textReaderInteraction/runtime/js/renderer.js @@ -146,6 +146,7 @@ define( var interaction; var renderer; var images; + var anchors; this.options.$container.trigger('beforerenderpages.' + self.eventNs);