Fix camel case

master
Emil Miler 4 years ago
parent cc90d008a8
commit af28be8f6f

@ -26,7 +26,7 @@ class Controller {
init(videoToLoad) { init(videoToLoad) {
this.loadXml(videoToLoad).then( this.loadXml(videoToLoad).then(
function (v) { function (v) {
this.view.drawCommenttitles(v); this.view.drawCommentTitles(v);
this.addEventListeners(); this.addEventListeners();
this.view.drawCommentsToVideo(v); this.view.drawCommentsToVideo(v);
}.bind(this) }.bind(this)

@ -21,7 +21,7 @@ class View {
); */ ); */
} }
drawCommenttitles(comments) { drawCommentTitles(comments) {
let aside = document.getElementsByTagName("aside")[0]; let aside = document.getElementsByTagName("aside")[0];
for (let i = 0; i < comments.length; i++) { for (let i = 0; i < comments.length; i++) {
@ -49,11 +49,11 @@ class View {
comment.appendChild(time); comment.appendChild(time);
let commenttitle = document.createElement("div"); let commentTitle = document.createElement("div");
commenttitle.setAttribute("class", "commentText"); commentTitle.setAttribute("class", "commentText");
commenttitle.innerHTML = comments[i].title; commentTitle.innerHTML = comments[i].title;
comment.appendChild(commenttitle); comment.appendChild(commentTitle);
aside.appendChild(comment); aside.appendChild(comment);

Loading…
Cancel
Save