Skip to content
Browse files

moved takeSnapshot into top-down order

  • Loading branch information...
1 parent 828c139 commit b70f1d9f20713d977253afc2703468556c4e8df2 kragen committed Dec 29, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 aikidraw.js
View
10 aikidraw.js
@@ -91,11 +91,6 @@ var aiki =
aiki.saveDrawing()
}
- , takeSnapshot: function() {
- var cv = aiki.cx.canvas
- aiki.snapshot = aiki.cx.getImageData(0, 0, cv.width, cv.height)
- }
-
, mouseMoveHandler: function(ev) {
var newPos = aiki.evPos(ev)
aiki.mousePos = newPos
@@ -264,6 +259,11 @@ var aiki =
}
}
+ , takeSnapshot: function() {
+ var cv = aiki.cx.canvas
+ aiki.snapshot = aiki.cx.getImageData(0, 0, cv.width, cv.height)
+ }
+
, runAndSave: function(command) {
aiki.run(command)
aiki.drawing.push(command)

0 comments on commit b70f1d9

Please sign in to comment.
Something went wrong with that request. Please try again.