craftyjs/Crafty — pull request #249 by NyanLeek (2012-04-11 01:46:04+00:00)
Title: Updated src/2D.js src/controls.js

areaMap polygon overrides .collision(polygon)

issue #243

https://github.com/craftyjs/Crafty/issues/243

Added mapArea as the new variable for isAt and areaMap to read and set values, respectively, making it possible to handle mouse events separate from collisions, defaults to collision .map if .mapArea not present.

Patch does not work for canvas, it defaults to the collision polygon, as I don't understand how it gets the polygon data.