chore: Run clang-format on core/*.js (#5589)

* Run clang-format on core/*.js

* Revert changes for css formatting
This commit is contained in:
Rachel Fenichel
2021-10-07 10:32:02 -07:00
committed by GitHub
parent 2b1f33cc7b
commit b25e24fd02
29 changed files with 177 additions and 181 deletions

View File

@@ -81,14 +81,14 @@ Object.defineProperties(exports, {
currentBlock: {
get: function() {
deprecation.warn(
'Blockly.ContextMenu.currentBlock', 'September 2021', 'September 2022',
'Blockly.Tooltip.getCurrentBlock()');
'Blockly.ContextMenu.currentBlock', 'September 2021',
'September 2022', 'Blockly.Tooltip.getCurrentBlock()');
return getCurrentBlock();
},
set: function(block) {
deprecation.warn(
'Blockly.ContextMenu.currentBlock', 'September 2021', 'September 2022',
'Blockly.Tooltip.setCurrentBlock(block)');
'Blockly.ContextMenu.currentBlock', 'September 2021',
'September 2022', 'Blockly.Tooltip.setCurrentBlock(block)');
setCurrentBlock(block);
},
},
@@ -210,9 +210,7 @@ const createWidget_ = function(menu) {
/** @type {!Element} */ (menuDom), 'blocklyContextMenu');
// Prevent system context menu when right-clicking a Blockly context menu.
browserEvents.conditionalBind(
/** @type {!EventTarget} */ (menuDom),
'contextmenu',
null,
/** @type {!EventTarget} */ (menuDom), 'contextmenu', null,
haltPropagation);
// Focus only after the initial render to avoid issue #1329.
menu.focus();
@@ -349,8 +347,7 @@ const workspaceCommentOption = function(ws, e) {
const addWsComment = function() {
const comment = new WorkspaceCommentSvg(
ws, Msg['WORKSPACE_COMMENT_DEFAULT_TEXT'],
WorkspaceCommentSvg.DEFAULT_SIZE,
WorkspaceCommentSvg.DEFAULT_SIZE);
WorkspaceCommentSvg.DEFAULT_SIZE, WorkspaceCommentSvg.DEFAULT_SIZE);
const injectionDiv = ws.getInjectionDiv();
// Bounding rect coordinates are in client coordinates, meaning that they