diff options
| author | Gubolin <gubolin@fantasymail.de> | 2015-01-24 10:20:03 +0100 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2015-01-24 10:20:03 +0100 |
| commit | 39c061f6a6071d6c4dd3ba5de642226590a5ac47 (patch) | |
| tree | 1fcfb5373c6fcb50670828fa6dc470ff192d1a58 /byob.js | |
| parent | 7311c3ee0cc93e50e5adcb521a94e8738ed98eb2 (diff) | |
| parent | 2ca378c50bf67b6af5e16ba72af81f4f84db308c (diff) | |
| download | snap-39c061f6a6071d6c4dd3ba5de642226590a5ac47.tar.gz snap-39c061f6a6071d6c4dd3ba5de642226590a5ac47.zip | |
Merge branch 'master' of https://github.com/jmoenig/Snap--Build-Your-Own-Blocks into development
Diffstat (limited to 'byob.js')
| -rw-r--r-- | byob.js | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -9,7 +9,7 @@ written by Jens Mönig jens@moenig.org - Copyright (C) 2014 by Jens Mönig + Copyright (C) 2015 by Jens Mönig This file is part of Snap!. @@ -106,7 +106,7 @@ SymbolMorph, isNil*/ // Global stuff //////////////////////////////////////////////////////// -modules.byob = '2014-November-20'; +modules.byob = '2015-January-21'; // Declarations @@ -209,12 +209,14 @@ CustomBlockDefinition.prototype.copyAndBindTo = function (sprite) { c.receiver = sprite; // only for (kludgy) serialization c.declarations = copy(this.declarations); // might have to go deeper - c.body = Process.prototype.reify.call( - null, - this.body.expression, - new List(this.inputNames()) - ); - c.body.outerContext = null; + if (c.body) { + c.body = Process.prototype.reify.call( + null, + this.body.expression, + new List(this.inputNames()) + ); + c.body.outerContext = null; + } return c; }; @@ -1649,7 +1651,7 @@ BlockEditorMorph.prototype.init = function (definition, target) { scripts = new ScriptsMorph(target); scripts.isDraggable = false; scripts.color = IDE_Morph.prototype.groupColor; - scripts.texture = IDE_Morph.prototype.scriptsPaneTexture; + scripts.cachedTexture = IDE_Morph.prototype.scriptsPaneTexture; scripts.cleanUpMargin = 10; proto = new PrototypeHatBlockMorph(this.definition); |
