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]; },