mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Only check for getters, not setters when deciding wether an object is a simple value or an accesor description. Workaround for a bug where Point is interpreted as accessor due to its #set(x, y) method.
This commit is contained in:
parent
99a8532cca
commit
e813ffd102
1 changed files with 1 additions and 1 deletions
2
lib/bootstrap.js
vendored
2
lib/bootstrap.js
vendored
|
@ -168,7 +168,7 @@ var Base = new function() { // Bootstrap scope
|
|||
beans.push([ bean[3].toLowerCase() + bean[4], bean[2] ]);
|
||||
}
|
||||
// No need to look up getter if this is a function already.
|
||||
if (!res || func || !res.get && !res.set)
|
||||
if (!res || func || !res.get)
|
||||
res = { value: res, writable: true };
|
||||
// Only set/change configurable and enumerable if this field is
|
||||
// configurable
|
||||
|
|
Loading…
Reference in a new issue