summaryrefslogtreecommitdiff
path: root/byob.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-01-24 10:21:35 +0100
committerGubolin <gubolin@fantasymail.de>2015-01-24 10:21:35 +0100
commit1ed98c27ff3c1a825e75783481a4e739fb610bdb (patch)
treed7ed3cf3740fd47b21afc1cf4e7014ac32731d8b /byob.js
parentb9a3ba8fcae035cf155cd6d4fc213bdc5d144913 (diff)
parent75b8d44713c57df638dcb95a84b480aeb7414012 (diff)
downloadsnap-1ed98c27ff3c1a825e75783481a4e739fb610bdb.tar.gz
snap-1ed98c27ff3c1a825e75783481a4e739fb610bdb.zip
Merge branch 'development' into gh-pages
Diffstat (limited to 'byob.js')
-rw-r--r--byob.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/byob.js b/byob.js
index b5905ce..ec714f1 100644
--- a/byob.js
+++ b/byob.js
@@ -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);