summaryrefslogtreecommitdiff
path: root/byob.js
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-05-03 19:15:52 -0700
committerMichael Ball <cycomachead@gmail.com>2014-05-03 19:15:52 -0700
commit01b9417b87688b591fe3df2a55ec367dd72f027d (patch)
tree9bb4d236387b631e4f1ca3fe57152f148d4c9fa4 /byob.js
parent8badce6480d434653326684a953fccc6cf03c5d8 (diff)
parentf9989ad7cfa5e27b4784d8cd464fdc7cbe289942 (diff)
downloadsnap-01b9417b87688b591fe3df2a55ec367dd72f027d.tar.gz
snap-01b9417b87688b591fe3df2a55ec367dd72f027d.zip
Merge pull request #31 from jmoenig/master
Update CS10 Fork
Diffstat (limited to 'byob.js')
-rw-r--r--byob.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/byob.js b/byob.js
index 4b581e1..6a10110 100644
--- a/byob.js
+++ b/byob.js
@@ -106,7 +106,7 @@ SymbolMorph, isNil*/
// Global stuff ////////////////////////////////////////////////////////
-modules.byob = '2014-January-10';
+modules.byob = '2014-May-02';
// Declarations
@@ -372,8 +372,12 @@ CustomCommandBlockMorph.prototype.refresh = function () {
this.setCategory(def.category);
if (this.blockSpec !== newSpec) {
oldInputs = this.inputs();
+ if (!this.zebraContrast) {
+ this.forceNormalColoring();
+ } else {
+ this.fixBlockColor();
+ }
this.setSpec(newSpec);
- this.fixBlockColor();
this.fixLabelColor();
this.restoreInputs(oldInputs);
} else { // update all input slots' drop-downs
@@ -2579,7 +2583,10 @@ InputSlotDialogMorph.prototype.symbolMenu = function () {
myself = this;
SymbolMorph.prototype.names.forEach(function (symbol) {
symbols.push([
- [new SymbolMorph(symbol, myself.fontSize, symbolColor), symbol],
+ [
+ new SymbolMorph(symbol, myself.fontSize, symbolColor),
+ localize(symbol)
+ ],
'$' + symbol
]);
});