Changing === to ==

This commit is contained in:
Karishma Chadha 2017-11-20 17:01:42 -05:00
parent efc74609ac
commit d9b5dc09ce
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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]);
}
}