mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Move createDom call into the constructor of block drag surface. (#790)
This commit is contained in:
@@ -47,6 +47,7 @@ Blockly.BlockDragSurfaceSvg = function(container) {
|
||||
* @private
|
||||
*/
|
||||
this.container_ = container;
|
||||
this.createDom();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,6 @@ Blockly.inject = function(container, opt_options) {
|
||||
// Create surfaces for dragging things. These are optimizations
|
||||
// so that the broowser does not repaint during the drag.
|
||||
var blockDragSurface = new Blockly.BlockDragSurfaceSvg(subContainer);
|
||||
blockDragSurface.createDom();
|
||||
var workspaceDragSurface = new Blockly.workspaceDragSurfaceSvg(subContainer);
|
||||
|
||||
var workspace = Blockly.createMainWorkspace_(svg, options, blockDragSurface,
|
||||
|
||||
Reference in New Issue
Block a user