summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/engine/map/ui_editor.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-08-13 16:44:32 -0400
committerJules Laplace <jules@okfoc.us>2014-08-13 16:44:32 -0400
commited5751766079a62ce596dcc0abc1a211b5b633dc (patch)
tree1f4d2b2e8ceed87ffad34a34143a661da4022186 /public/assets/javascripts/rectangles/engine/map/ui_editor.js
parentefbee2f77d9405d96c773ce8f909e420e8520c5c (diff)
parent90cb5b343f3d56372f9b43faf215ed80dd879fe1 (diff)
merge
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/map/ui_editor.js')
-rw-r--r--public/assets/javascripts/rectangles/engine/map/ui_editor.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/public/assets/javascripts/rectangles/engine/map/ui_editor.js b/public/assets/javascripts/rectangles/engine/map/ui_editor.js
index c5c996c..9a557b9 100644
--- a/public/assets/javascripts/rectangles/engine/map/ui_editor.js
+++ b/public/assets/javascripts/rectangles/engine/map/ui_editor.js
@@ -58,8 +58,8 @@ Map.UI.Editor = function(map){
UndoStack.push({
type: "destroy-room",
- prev: room.copy(),
- next: { id: room.id },
+ undo: room.copy(),
+ redo: { id: room.id },
})
Rooms.remove(room)
@@ -164,8 +164,8 @@ Map.UI.Editor = function(map){
UndoStack.push({
type: "create-room",
- prev: { id: room.id },
- next: room.copy()
+ undo: { id: room.id },
+ redo: room.copy()
})
app.tube("builder-pick-room", room)
@@ -185,8 +185,8 @@ Map.UI.Editor = function(map){
UndoStack.push({
type: "update-room",
- prev: oldState,
- next: base.dragging.copy()
+ undo: oldState,
+ redo: base.dragging.copy()
})
}
@@ -211,8 +211,8 @@ Map.UI.Editor = function(map){
wheelTimeout = setTimeout(function(){
UndoStack.push({
type: "update-room",
- prev: wheelState,
- next: intersects[0].copy()
+ undo: wheelState,
+ redo: intersects[0].copy()
})
Rooms.clipper.update()
wheelState = null