This commit is contained in:
Rachel Fenichel
2016-04-27 13:23:14 -07:00
parent 6c0bf9f966
commit 497f86ebf2

View File

@@ -271,7 +271,7 @@ function helper_searchDB(db, x, y, radius, shared_workspace) {
var tempConn = helper_createConnection(x, y,
Blockly.NEXT_STATEMENT, shared_workspace);
tempConn.sourceBlock_ = helper_makeSourceBlock(shared_workspace);
var closest = db.searchForClosest(tempConn, radius, 0, 0);
var closest = db.searchForClosest(tempConn, radius, {x: 0, y: 0});
return closest.connection;
}