Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
[fix] change create event call position
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Mar 16, 2018
1 parent d9e7389 commit 0ad275e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/map/handlers/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ export default class History {
this.map.draw.clear();
this.map.draw.update();

this.map.events.call(Event.create);

this.map.nodes.addRootNode(oldRootCoordinates);

this.map.zoom.center(null, 0);

this.save();
} else if (this.checkSnapshotStructure(snapshot)) {
this.redraw(snapshot);

this.map.events.call(Event.create);
} else if (this.checkSnapshotStructure(snapshot)) {
this.redraw(snapshot);

this.map.zoom.center("position", 0);

this.save();

this.map.events.call(Event.create);
} else {
Log.error("The snapshot is not correct");
}
Expand Down

0 comments on commit 0ad275e

Please sign in to comment.