Simplified SAVE STATE events, added wrap method to easily build decorators

This commit is contained in:
juliandescottes
2014-04-20 13:15:30 +02:00
parent 8335c07519
commit c2a3ccc8d0
11 changed files with 119 additions and 201 deletions

View File

@@ -51,17 +51,12 @@
this.draw_(coords.col, coords.row, color, frame);
$.publish(Events.DRAG_END, [col, row]);
$.publish(Events.PISKEL_SAVE_STATE, {
type : 'TOOL',
tool : this,
replay : {
col : col,
row : row,
startCol : this.startCol,
startRow : this.startRow,
color : color
}
this.raiseSaveStateEvent({
col : col,
row : row,
startCol : this.startCol,
startRow : this.startRow,
color : color
});
};