From 4a60bfba18c3ff7bd929402737d208b53f4d7229 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 9 Jan 2014 17:49:44 +0100 Subject: Fixed Morphic updateReferences() how could this go undetected so long? :-) --- history.txt | 1 + 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?!) diff --git a/morphic.js b/morphic.js index b3c9769..c5aa561 100644 --- a/morphic.js +++ b/morphic.js @@ -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]; } } -- cgit v1.3.1