mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Prevent overriding of global variables with undefined values during development.
This commit is contained in:
parent
73f857170d
commit
132f6df6c8
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
|
||||||
// fields on PaperScope.prototype, e.g. all classes
|
// fields on PaperScope.prototype, e.g. all classes
|
||||||
for (var key in this)
|
for (var key in this)
|
||||||
// Exclude all 'hidden' fields
|
// Exclude all 'hidden' fields
|
||||||
if (!/^_/.test(key))
|
if (!/^_/.test(key) && this[key])
|
||||||
scope[key] = this[key];
|
scope[key] = this[key];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue