diff --git a/core/connection.js b/core/connection.js index 91a6f19a7..2832dfe73 100644 --- a/core/connection.js +++ b/core/connection.js @@ -603,6 +603,13 @@ Blockly.Connection.prototype.setCheck = function(check) { return this; }; +/** + * Get a connection's compatibility. + * @return {Array} List of compatible value types. + */ +Blockly.Connection.prototype.getCheck = function() { + return this.check_; +}; /** * Change a connection's shadow block. * @param {Element} shadow DOM representation of a block or null.