Set isBulkUpdating correctly

This commit is contained in:
Rachel Fenichel 2017-10-10 13:03:51 -07:00
parent c838ca3a87
commit 4a752af88f

View file

@ -1818,7 +1818,7 @@ Blockly.WorkspaceSvg.prototype.setBulkUpdate = function(enabled) {
// This will trigger a resize if necessary.
this.setResizesEnabled(enabled);
var stoppedUpdating = (this.isBulkUpdating_ && !enabled);
this.isBulkUpdating_ = stoppedUpdating;
this.isBulkUpdating_ = enabled;
if (stoppedUpdating) {
// Refresh the toolbox.
if (this.toolbox_) {