mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
24 lines
582 B
Plaintext
24 lines
582 B
Plaintext
***************
|
|
*** 43,49 ****
|
|
* @constructor
|
|
*/
|
|
Blockly.Input = function(type, name, block, connection) {
|
|
- this.type = type;
|
|
this.name = name;
|
|
this.sourceBlock_ = block;
|
|
this.connection = connection;
|
|
--- 43,55 ----
|
|
* @constructor
|
|
*/
|
|
Blockly.Input = function(type, name, block, connection) {
|
|
+ if (type == Blockly.INDENTED_VALUE){
|
|
+ this.type = Blockly.INPUT_VALUE;
|
|
+ this.subtype = Blockly.INDENTED_VALUE;
|
|
+ }
|
|
+ else {
|
|
+ this.type = type;
|
|
+ }
|
|
this.name = name;
|
|
this.sourceBlock_ = block;
|
|
this.connection = connection;
|