Let comment change event handler multitask.
This commit is contained in:
1 parent
7b55d8e7ab
commit
6bc04c4bef
1 file changed
+5
-9
@@ -375,18 +375,14 @@ class Blocks {
|
||||
const change = e.newContents_;
|
||||
if (change.hasOwnProperty('minimized')) {
|
||||
comment.minimized = change.minimized;
|
||||
break;
|
||||
} else if (change.hasOwnProperty('width') && change.hasOwnProperty('height')){
|
||||
}
|
||||
if (change.hasOwnProperty('width') && change.hasOwnProperty('height')){
|
||||
comment.width = change.width;
|
||||
comment.height = change.height;
|
||||
break;
|
||||
} else if (change.hasOwnProperty('text')) {
|
||||
comment.text = change.text;
|
||||
break;
|
||||
}
|
||||
log.warn(`Unrecognized comment change: ${
|
||||
JSON.stringify(change)} for comment with id: ${e.commentId}.`);
|
||||
return;
|
||||
if (change.hasOwnProperty('text')) {
|
||||
comment.text = change.text;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'comment_move':
|
||||
|
||||
Reference in new issue
Block a user