mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Don't compute (useless) location of trashcan while workspace is being built.
Theoretical performance bump, fixes crash in Opera 12.
This commit is contained in:
@@ -1009,7 +1009,7 @@ Blockly.WorkspaceSvg.prototype.createVariable = function(name, opt_type, opt_id)
|
||||
* Make a list of all the delete areas for this workspace.
|
||||
*/
|
||||
Blockly.WorkspaceSvg.prototype.recordDeleteAreas = function() {
|
||||
if (this.trashcan) {
|
||||
if (this.trashcan && this.svgGroup_.parentNode) {
|
||||
this.deleteAreaTrash_ = this.trashcan.getClientRect();
|
||||
} else {
|
||||
this.deleteAreaTrash_ = null;
|
||||
|
||||
Reference in New Issue
Block a user