mirror of
https://github.com/google/blockly.git
synced 2026-01-31 20:50:10 +01:00
[WIP] Fix bug when using function as connection check
This commit is contained in:
@@ -574,7 +574,7 @@ Blockly.Connection.prototype.checkType_ = function(otherConnection) {
|
||||
// or if the check is a function, evaluate the function.
|
||||
for (var i = 0; i < this.check_.length; i++) {
|
||||
if ((otherConnection.check_.indexOf(this.check_[i]) != -1) ||
|
||||
(typeof this.check_[x] == "function" && this.check_[x](this,other))) {
|
||||
(typeof this.check_[i] == "function" && this.check_[i](this,otherConnection))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user