Skip to content

Commit

Permalink
Stop resetting list of connections when errors occur
Browse files Browse the repository at this point in the history
Change-Id: I0377e3c1958885587d1a2a6336ec9c9b30e7c7cb
  • Loading branch information
ewpatton authored and jisqyv committed Dec 6, 2018
1 parent f6f0160 commit ac7c0e4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions appinventor/blocklyeditor/src/workspace_svg.js
Expand Up @@ -249,13 +249,6 @@ Blockly.WorkspaceSvg.prototype.isDrawerShowing = function() {
Blockly.WorkspaceSvg.prototype.render = function(blocks) { Blockly.WorkspaceSvg.prototype.render = function(blocks) {
this.rendered = true; this.rendered = true;
this.bulkRendering = true; this.bulkRendering = true;
// In bulk rendering mode, the database accepts all new connections to be
// sorted later. If we don't clear this, then we can end up with multiple
// entries in the DB for the same connection. This isn't necessarily bad,
// but it may decrease performance.
this.connectionDBList.forEach(function (db) {
db.length = 0; // clear the databases
});
Blockly.Field.startCache(); Blockly.Field.startCache();
try { try {
if (Blockly.Instrument.isOn) { if (Blockly.Instrument.isOn) {
Expand Down

0 comments on commit ac7c0e4

Please sign in to comment.