Add connection.getCheck function #2048 (#2049)

* Add connection.getCheck function #2048

* remove unused argument

* fix eslint error

* fix eslint error
This commit is contained in:
Tianwei Du
2018-09-14 02:02:39 +08:00
committed by Rachel Fenichel
parent c0d96dd33f
commit dcab9c1013

View File

@@ -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.