#1848 Fixed eslint errors

This commit is contained in:
Mehdi Yeganeh
2018-12-05 13:25:52 +03:30
parent 16f2175356
commit a20af7e413

View File

@@ -437,8 +437,9 @@ Blockly.WorkspaceCommentSvg.prototype.setFocus = function() {
this.focused_ = true;
// Defer CSS changes.
setTimeout(function() {
if(comment.disposed_)
if (comment.disposed_) {
return;
}
comment.textarea_.focus();
comment.addFocus();
Blockly.utils.addClass(
@@ -457,8 +458,10 @@ Blockly.WorkspaceCommentSvg.prototype.blurFocus = function() {
this.focused_ = false;
// Defer CSS changes.
setTimeout(function() {
if(comment.disposed_)
if (comment.disposed_) {
return;
}
comment.textarea_.blur();
comment.removeFocus();
Blockly.utils.removeClass(