mirror of
https://github.com/google/blockly.git
synced 2026-01-18 14:27:12 +01:00
#1848 Fixed eslint errors
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user