Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: convert blocksvg and block to ES6 classes #5952

Merged
merged 11 commits into from
Feb 28, 2022
3,669 changes: 1,866 additions & 1,803 deletions core/block.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion core/block_dragger.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ const BlockDragger = class {
const initIconData = function(block) {
// Build a list of icons that need to be moved and where they started.
const dragIconData = [];
const descendants = block.getDescendants(false);
const descendants =
/** @type {!Array<!BlockSvg>} */ (block.getDescendants(false));
BeksOmega marked this conversation as resolved.
Show resolved Hide resolved

for (let i = 0, descendant; (descendant = descendants[i]); i++) {
const icons = descendant.getIcons();
Expand Down
Loading