ericdrowell / KineticJS

KineticJS is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://www.kineticjs.com
3.98k stars 752 forks source link

Intersects _applyShadow() undefined #1027

Closed d3Qa closed 10 years ago

d3Qa commented 10 years ago

I'm trying to check an intersection between one point with an object. The intersects() function works fine for an object that doesn't have any shadow attributes.

But when any shadow attributes added, e.g: shadowColor or shadowOffsetX, it will give a console error of:

In chrome:

"Uncaught TypeError: undefined is not a function"

In firefox:

"TypeError: h._applyShadow is not a function"

Here is the fiddle for this issue: Error Example