mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-01 00:32:05 -04:00
Changing === to ==
This commit is contained in:
parent
efc74609ac
commit
d9b5dc09ce
2 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@ Blockly.FieldVariable.prototype.initModel = function() {
|
|||
// If there is exactly one element specified, make the variable
|
||||
// being created this specified type. Else, default behavior is to create
|
||||
// a scalar variable
|
||||
if (this.getVariableTypes_().length === 1) {
|
||||
if (this.getVariableTypes_().length == 1) {
|
||||
this.sourceBlock_.workspace.createVariable(this.getValue(),
|
||||
this.getVariableTypes_()[0]);
|
||||
} else {
|
||||
|
@ -190,7 +190,7 @@ Blockly.FieldVariable.dropdownCreate = function() {
|
|||
// doesn't modify the workspace's list.
|
||||
for (var i = 0; i < variableTypes.length; i++) {
|
||||
var variableType = variableTypes[i];
|
||||
if (variableType === Blockly.BROADCAST_MESSAGE_TYPE){
|
||||
if (variableType == Blockly.BROADCAST_MESSAGE_TYPE){
|
||||
isBroadcastType = true;
|
||||
}
|
||||
var variables = workspace.getVariablesOfType(variableType);
|
||||
|
|
|
@ -127,7 +127,7 @@ Blockly.Xml.blockToDom = function(block, opt_noId) {
|
|||
// FieldVariableGetter doesn't have getVariableTypes_ function
|
||||
if (field instanceof Blockly.FieldVariable) {
|
||||
var variableTypes = field.getVariableTypes_();
|
||||
if (variableTypes.length === 1) {
|
||||
if (variableTypes.length == 1) {
|
||||
container.setAttribute('variabletype', variableTypes[0]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue