From 132f6df6c8b2a0bcbb813be0889019de49a9bb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 5 Jan 2014 18:57:36 +0100 Subject: [PATCH] Prevent overriding of global variables with undefined values during development. --- src/core/PaperScope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/PaperScope.js b/src/core/PaperScope.js index ec0b2c14..f9f60e84 100644 --- a/src/core/PaperScope.js +++ b/src/core/PaperScope.js @@ -160,7 +160,7 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{ // fields on PaperScope.prototype, e.g. all classes for (var key in this) // Exclude all 'hidden' fields - if (!/^_/.test(key)) + if (!/^_/.test(key) && this[key]) scope[key] = this[key]; },