Fixed an issue where hit didn't cached if a shape was cached before added to a layer. Fix #758
draw cache hit only when the shape was listening and visible
Merge branch 'fix-cache-hit-before-added-to-layer' of git://github.com/kzhdev/KineticJS into kzhdev-fix-cache-hit-before-added-to-layer
unit test for drawing hit before adding shape to layer
Merge branch 'kzhdev-fix-cache-hit-before-added-to-layer'