summaryrefslogtreecommitdiff
path: root/morphic.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-01-09 17:49:44 +0100
committerjmoenig <jens@moenig.org>2014-01-09 17:49:44 +0100
commit4a60bfba18c3ff7bd929402737d208b53f4d7229 (patch)
treebdeb998ac38c32bbc85cfea6aa1d7a94a0726fb0 /morphic.js
parent5cb8003542499f7e9fb7f590b05628c59ae4df39 (diff)
downloadsnap-4a60bfba18c3ff7bd929402737d208b53f4d7229.tar.gz
snap-4a60bfba18c3ff7bd929402737d208b53f4d7229.zip
Fixed Morphic updateReferences()
how could this go undetected so long? :-)
Diffstat (limited to 'morphic.js')
-rw-r--r--morphic.js6
1 files changed, 3 insertions, 3 deletions
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];
}
}