Update Layer.js

not use the 
 this.beforeDrawFunc = undefined;
 this.afterDrawFunc = undefined;

used event from parent class of Kinetic.Node