diff --git a/core/inject.js b/core/inject.js index 07999f27ee2..6c7094428a9 100644 --- a/core/inject.js +++ b/core/inject.js @@ -59,7 +59,8 @@ const inject = function(container, opt_options) { } const options = new Options(opt_options || (/** @type {!BlocklyOptions} */ ({}))); - const subContainer = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const subContainer = + /** @type {!HTMLDivElement} */ (document.createElement('div')); subContainer.className = 'injectionDiv'; subContainer.tabIndex = 0; aria.setState(subContainer, aria.State.LABEL, Msg['WORKSPACE_ARIA_LABEL']); diff --git a/core/menuitem.js b/core/menuitem.js index f869b7071af..b4bd2ed301f 100644 --- a/core/menuitem.js +++ b/core/menuitem.js @@ -107,7 +107,8 @@ const MenuItem = class { * @return {!Element} Completed DOM. */ createDom() { - const element = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const element = + /** @type {!HTMLDivElement} */ (document.createElement('div')); element.id = idGenerator.getNextUniqueId(); this.element_ = element; @@ -121,11 +122,13 @@ const MenuItem = class { '') + (this.rightToLeft_ ? 'blocklyMenuItemRtl goog-menuitem-rtl ' : ''); - const content = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const content = + /** @type {!HTMLDivElement} */ (document.createElement('div')); content.className = 'blocklyMenuItemContent goog-menuitem-content'; // Add a checkbox for checkable menu items. if (this.checkable_) { - const checkbox = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const checkbox = + /** @type {!HTMLDivElement} */ (document.createElement('div')); checkbox.className = 'blocklyMenuItemCheckbox goog-menuitem-checkbox'; content.appendChild(checkbox); } diff --git a/core/toolbox/category.js b/core/toolbox/category.js index f174c635ed7..47165b637a9 100644 --- a/core/toolbox/category.js +++ b/core/toolbox/category.js @@ -246,7 +246,8 @@ class ToolboxCategory extends ToolboxItem { * @protected */ createContainer_() { - const container = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const container = + /** @type {!HTMLDivElement} */ (document.createElement('div')); dom.addClass(container, this.cssConfig_['container']); return container; } @@ -258,7 +259,8 @@ class ToolboxCategory extends ToolboxItem { * @protected */ createRowContainer_() { - const rowDiv = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const rowDiv = + /** @type {!HTMLDivElement} */ (document.createElement('div')); dom.addClass(rowDiv, this.cssConfig_['row']); let nestedPadding = ToolboxCategory.nestedPadding * this.getLevel(); nestedPadding = nestedPadding.toString() + 'px'; @@ -274,7 +276,8 @@ class ToolboxCategory extends ToolboxItem { * @protected */ createRowContentsContainer_() { - const contentsContainer = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const contentsContainer = + /** @type {!HTMLDivElement} */ (document.createElement('div')); dom.addClass(contentsContainer, this.cssConfig_['rowcontentcontainer']); return contentsContainer; } diff --git a/core/toolbox/collapsible_category.js b/core/toolbox/collapsible_category.js index f4e7d55de68..032a3f6c29a 100644 --- a/core/toolbox/collapsible_category.js +++ b/core/toolbox/collapsible_category.js @@ -174,7 +174,8 @@ class CollapsibleToolboxCategory extends ToolboxCategory { * @protected */ createSubCategoriesDom_(subcategories) { - const contentsContainer = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const contentsContainer = + /** @type {!HTMLDivElement} */ (document.createElement('div')); dom.addClass(contentsContainer, this.cssConfig_['contents']); for (let i = 0; i < subcategories.length; i++) { diff --git a/core/toolbox/separator.js b/core/toolbox/separator.js index f61d97b1375..9759286d1d1 100644 --- a/core/toolbox/separator.js +++ b/core/toolbox/separator.js @@ -70,7 +70,8 @@ class ToolboxSeparator extends ToolboxItem { * @protected */ createDom_() { - const container = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const container = + /** @type {!HTMLDivElement} */ (document.createElement('div')); dom.addClass(container, this.cssConfig_['container']); this.htmlDiv_ = container; return container; diff --git a/core/toolbox/toolbox.js b/core/toolbox/toolbox.js index afc95885728..01181e82f8e 100644 --- a/core/toolbox/toolbox.js +++ b/core/toolbox/toolbox.js @@ -266,7 +266,8 @@ class Toolbox extends DeleteArea { * @protected */ createContainer_() { - const toolboxContainer = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const toolboxContainer = + /** @type {!HTMLDivElement} */ (document.createElement('div')); toolboxContainer.setAttribute('layout', this.isHorizontal() ? 'h' : 'v'); dom.addClass(toolboxContainer, 'blocklyToolboxDiv'); dom.addClass(toolboxContainer, 'blocklyNonSelectable'); @@ -280,7 +281,8 @@ class Toolbox extends DeleteArea { * @protected */ createContentsContainer_() { - const contentsContainer = /** @type {!HTMLDivElement} */ (document.createElement('div')); + const contentsContainer = + /** @type {!HTMLDivElement} */ (document.createElement('div')); dom.addClass(contentsContainer, 'blocklyToolboxContents'); if (this.isHorizontal()) { contentsContainer.style.flexDirection = 'row';