KineticJS icon indicating copy to clipboard operation
KineticJS copied to clipboard

Node.prototype.toObject

Open AimForNaN opened this issue 11 years ago • 0 comments

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;

AimForNaN avatar Nov 07 '14 16:11 AimForNaN