Merge branch 'master' into date-field

This commit is contained in:
Paul Kendall
2015-02-05 07:46:00 +13:00
6 changed files with 114 additions and 83 deletions

View File

@@ -727,6 +727,10 @@ Blockly.ConnectionDB.prototype.addConnection_ = function(connection) {
if (connection.inDB_) {
throw 'Connection already in database.';
}
if (connection.sourceBlock_.isInFlyout) {
// Don't bother maintaining a database of connections in a flyout.
return;
}
// Insert connection using binary search.
var pointerMin = 0;
var pointerMax = this.length;