mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Simplified SAVE STATE events, added wrap method to easily build decorators
This commit is contained in:
@@ -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
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user