kopia lustrzana https://github.com/backface/turtlestitch
Fixed typo ('gobal' -> 'global')
rodzic
60942484e6
commit
d6cfc77544
8
byob.js
8
byob.js
|
@ -1558,7 +1558,7 @@ BlockDialogMorph.prototype.createScopeButtons = function () {
|
||||||
var myself = this;
|
var myself = this;
|
||||||
|
|
||||||
this.addScopeButton(
|
this.addScopeButton(
|
||||||
function () {myself.setScope('gobal'); },
|
function () {myself.setScope('global'); },
|
||||||
"for all sprites",
|
"for all sprites",
|
||||||
function () {return myself.isGlobal; }
|
function () {return myself.isGlobal; }
|
||||||
);
|
);
|
||||||
|
@ -1591,7 +1591,7 @@ BlockDialogMorph.prototype.addScopeButton = function (action, label, query) {
|
||||||
|
|
||||||
|
|
||||||
BlockDialogMorph.prototype.setScope = function (varType) {
|
BlockDialogMorph.prototype.setScope = function (varType) {
|
||||||
this.isGlobal = (varType === 'gobal');
|
this.isGlobal = (varType === 'global');
|
||||||
this.scopes.children.forEach(function (c) {
|
this.scopes.children.forEach(function (c) {
|
||||||
c.refresh();
|
c.refresh();
|
||||||
});
|
});
|
||||||
|
@ -3282,7 +3282,7 @@ VariableDialogMorph.prototype.createTypeButtons = function () {
|
||||||
var myself = this;
|
var myself = this;
|
||||||
|
|
||||||
this.addTypeButton(
|
this.addTypeButton(
|
||||||
function () {myself.setType('gobal'); },
|
function () {myself.setType('global'); },
|
||||||
"for all sprites",
|
"for all sprites",
|
||||||
function () {return myself.isGlobal; }
|
function () {return myself.isGlobal; }
|
||||||
);
|
);
|
||||||
|
@ -3297,7 +3297,7 @@ VariableDialogMorph.prototype.addTypeButton
|
||||||
= BlockDialogMorph.prototype.addTypeButton;
|
= BlockDialogMorph.prototype.addTypeButton;
|
||||||
|
|
||||||
VariableDialogMorph.prototype.setType = function (varType) {
|
VariableDialogMorph.prototype.setType = function (varType) {
|
||||||
this.isGlobal = (varType === 'gobal');
|
this.isGlobal = (varType === 'global');
|
||||||
this.types.children.forEach(function (c) {
|
this.types.children.forEach(function (c) {
|
||||||
c.refresh();
|
c.refresh();
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue