This commit is contained in:
Eric Rowell
2013-04-04 23:17:20 -07:00
parent 280e07a2af
commit d57842126a
5 changed files with 36 additions and 44 deletions

View File

@@ -992,16 +992,10 @@
* the scene renderer
*/
draw: function() {
var layer = this.getLayer(),
evt = {
var evt = {
node: this
};
if(layer && layer.getClearBeforeDraw()) {
layer.getCanvas().clear();
layer.getHitCanvas().clear();
}
this.fire(BEFORE_DRAW, evt);
this.drawScene();
this.drawHit();