mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
[WIP] Merge input.js
This commit is contained in:
@@ -41,8 +41,14 @@ goog.require('goog.asserts');
|
||||
* @constructor
|
||||
*/
|
||||
Blockly.Input = function(type, name, block, connection) {
|
||||
/** @type {number} */
|
||||
this.type = type;
|
||||
if (type == Blockly.INDENTED_VALUE) {
|
||||
/** @type {number} */
|
||||
this.type = Blockly.INPUT_VALUE;
|
||||
/** @type {number} */
|
||||
this.subtype = Blockly.INDENTED_VALUE;
|
||||
} else {
|
||||
this.type = type;
|
||||
}
|
||||
/** @type {string} */
|
||||
this.name = name;
|
||||
/**
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
***************
|
||||
*** 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;
|
||||
Reference in New Issue
Block a user