Mercurial > hg > webaudioevaluationtool
comparison core.js @ 2051:da1be86c1782
Bug #1303 fixed. New function on page creation to destroy old commentQuestion objects.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 25 Jun 2015 16:37:51 +0100 |
parents | acf57b56634a |
children | e74327737152 |
comparison
equal
deleted
inserted
replaced
2050:acf57b56634a | 2051:da1be86c1782 |
---|---|
1837 } | 1837 } |
1838 }; | 1838 }; |
1839 | 1839 |
1840 this.deleteCommentBoxes = function() { | 1840 this.deleteCommentBoxes = function() { |
1841 this.commentBoxes = []; | 1841 this.commentBoxes = []; |
1842 } | 1842 }; |
1843 | 1843 |
1844 this.createCommentQuestion = function(element) { | 1844 this.createCommentQuestion = function(element) { |
1845 var node; | 1845 var node; |
1846 if (element.type == 'text') { | 1846 if (element.type == 'text') { |
1847 node = new this.commentBox(element); | 1847 node = new this.commentBox(element); |
1850 } else if (element.type == 'checkbox') { | 1850 } else if (element.type == 'checkbox') { |
1851 node = new this.checkboxBox(element); | 1851 node = new this.checkboxBox(element); |
1852 } | 1852 } |
1853 this.commentQuestions.push(node); | 1853 this.commentQuestions.push(node); |
1854 return node; | 1854 return node; |
1855 }; | |
1856 | |
1857 this.deleteCommentQuestions = function() | |
1858 { | |
1859 this.commentQuestions = []; | |
1855 }; | 1860 }; |
1856 | 1861 |
1857 this.playhead = new function() | 1862 this.playhead = new function() |
1858 { | 1863 { |
1859 this.object = document.createElement('div'); | 1864 this.object = document.createElement('div'); |