mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Add unit tests and code cleanup to utils (#1993)
* Add unit tests for new util functions * Utils functions shouldn’t be package, not private. * Use existing utility function for insertAfter
This commit is contained in:
@@ -57,7 +57,7 @@ Blockly.ScrollbarPair = function(workspace) {
|
||||
'class': 'blocklyScrollbarBackground'
|
||||
},
|
||||
null);
|
||||
Blockly.utils.insertAfter_(this.corner_, workspace.getBubbleCanvas());
|
||||
Blockly.utils.insertAfter(this.corner_, workspace.getBubbleCanvas());
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -625,7 +625,7 @@ Blockly.Scrollbar.prototype.createDom_ = function(opt_class) {
|
||||
'ry': radius
|
||||
},
|
||||
this.svgGroup_);
|
||||
Blockly.utils.insertAfter_(this.outerSvg_, this.workspace_.getParentSvg());
|
||||
Blockly.utils.insertAfter(this.outerSvg_, this.workspace_.getParentSvg());
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user