diff options
| author | jmoenig <jens@moenig.org> | 2014-01-09 17:49:44 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-01-09 17:49:44 +0100 |
| commit | 4a60bfba18c3ff7bd929402737d208b53f4d7229 (patch) | |
| tree | bdeb998ac38c32bbc85cfea6aa1d7a94a0726fb0 | |
| parent | 5cb8003542499f7e9fb7f590b05628c59ae4df39 (diff) | |
| download | snap-4a60bfba18c3ff7bd929402737d208b53f4d7229.tar.gz snap-4a60bfba18c3ff7bd929402737d208b53f4d7229.zip | |
Fixed Morphic updateReferences()
how could this go undetected so long? :-)
| -rwxr-xr-x | history.txt | 1 | ||||
| -rw-r--r-- | morphic.js | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/history.txt b/history.txt index 63935ec..20b4f65 100755 --- a/history.txt +++ b/history.txt @@ -2061,3 +2061,4 @@ ______ * Objects: Mechanism for migrating blocks in existing projects to newer versions * Blocks, Objects, Threads: Collapse old STOP primitives into a single one with a dropdown of options * German translation update for new (migrated) STOP block +* Morphic: Fixed updateReferences() (how could nobody notice so long?!) @@ -8,7 +8,7 @@ written by Jens Mönig jens@moenig.org - Copyright (C) 2013 by Jens Mönig + Copyright (C) 2014 by Jens Mönig This file is part of Snap!. @@ -1035,7 +1035,7 @@ /*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio, FileList, getBlurredShadowSupport*/ -var morphicVersion = '2013-December-12'; +var morphicVersion = '2014-January-09'; var modules = {}; // keep track of additional loaded modules var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug @@ -3068,7 +3068,7 @@ Morph.prototype.updateReferences = function (dict) { */ var property; for (property in this) { - if (property.isMorph && dict[property]) { + if (this[property] && this[property].isMorph && dict[property]) { this[property] = dict[property]; } } |
