Permalink
Browse files

Forgot to revert some local changes. Fixes the entire thing

  • Loading branch information...
1 parent 614f1c7 commit fe0be902421f3313671d444c2bf80f6bcb2a6b66 @sc0tt committed Mar 28, 2012
Showing with 13 additions and 4 deletions.
  1. +13 −4 paintapp.js
View
17 paintapp.js
@@ -11,9 +11,6 @@ $(document).ready(function () {
context.strokeStyle = "#000000";
context.fillStyle = '#ffffff';
context.fillRect(0, 0, canvas.width, canvas.height);
-
- $.getScript("Line.js", function(){});
-
var lineData = [];
var currLine = "",
lasti = 0,
@@ -130,4 +127,16 @@ $(document).ready(function () {
//update();
requestAnimFrame(loop, canvas);
})();
-});
+});
+var Line = function(x,y,drag)
+{
+ this.x = [x];
+ this.y = [y];
+ this.drag = [drag];
+ this.add = function(x,y,drag)
+ {
+ this.x.push(x);
+ this.y.push(y);
+ this.drag.push(drag);
+ }
+}

0 comments on commit fe0be90

Please sign in to comment.