mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix issue with JSON import.
This commit is contained in:
parent
c08fd44101
commit
5f7dbfb1ab
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ Base.inject(/** @lends Base# */{
|
|||
function(type, args) {
|
||||
// If a target is provided and its of the right type,
|
||||
// import right into it.
|
||||
var obj = target.constructor === type
|
||||
var obj = target && target.constructor === type
|
||||
? target
|
||||
: Base.create(type.prototype),
|
||||
isTarget = obj === target;
|
||||
|
|
Loading…
Reference in a new issue