KineticJS
KineticJS copied to clipboard
Node.prototype.toObject
Currently located at (near): https://github.com/ericdrowell/KineticJS/blob/master/kinetic.js#L3314
On a project i'm currently working on, the following line of code throws an error, saying undefined is not a function:
defaultValue = getter ? getter.call(this) : null;
This can be resolved by changing that line to:
defaultValue = type._isFunction(getter) ? getter.call(this) : null;