[WIP] Merge input.js

This commit is contained in:
Evan W. Patton
2016-09-28 20:53:11 -04:00
parent 081574babe
commit 632e09ac12
2 changed files with 8 additions and 25 deletions

View File

@@ -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;
/**

View File

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