Fixed initialization bug + performance issue with jquery pub sub

This commit is contained in:
juliandescottes
2012-09-10 19:53:34 +02:00
parent 12c9fececb
commit e1af86b647
2 changed files with 1 additions and 6 deletions

View File

@@ -83,7 +83,7 @@ $.namespace("pskl");
});
$.subscribe('FRAMESHEET_RESET', function(evt, frameId) {
piskel.redraw();
piskel.render();
});
var drawingLoop = new pskl.rendering.DrawingLoop();
drawingLoop.addCallback(this.render, this);