@@ -26,7 +26,7 @@ class Controller {
|
||||
init(videoToLoad) {
|
||||
this.loadXml(videoToLoad).then(
|
||||
function (v) {
|
||||
this.view.drawCommentsText(v);
|
||||
this.view.drawCommentTittles(v);
|
||||
this.addEventListeners();
|
||||
this.view.drawCommentsToVideo(v);
|
||||
}.bind(this)
|
||||
@@ -145,9 +145,17 @@ class Controller {
|
||||
|
||||
if (this.activeComment !== null) {
|
||||
this.view.activateComment(this.activeComment);
|
||||
this.view.activateCommentText(
|
||||
this.model.comments[this.activeComment].fulltext
|
||||
);
|
||||
console.log(this.model.comments[this.activeComment].text.length);
|
||||
|
||||
for (
|
||||
let i = 0;
|
||||
i < this.model.comments[this.activeComment].text.length;
|
||||
i++
|
||||
) {
|
||||
this.view.activateCommentText(
|
||||
this.model.comments[this.activeComment].text[i]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.lastActiveComment = this.activeComment;
|
||||
|
||||
Reference in New Issue
Block a user