Commit e6ea746c3f3d20f9b046fbb26c30f740d431dfb0
1 parent
751cef1f
Renamed Canvas Paint Object Name
Showing
1 changed file
with
3 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -1111,8 +1111,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -1111,8 +1111,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
1111 | var canvasElement = document.getElementById("canvas"); | 1111 | var canvasElement = document.getElementById("canvas"); |
1112 | var ctx = canvasElement.getContext("2d"); | 1112 | var ctx = canvasElement.getContext("2d"); |
1113 | 1113 | ||
1114 | - var canvasElement1 = document.getElementById("canvasPaint"); | ||
1115 | - var ctx1 = canvasElement1.getContext("2d"); | 1114 | + var canvasPaintElement = document.getElementById("canvasPaint"); |
1115 | + var PaintCanvasctx = canvasPaintElement.getContext("2d"); | ||
1116 | 1116 | ||
1117 | 1117 | ||
1118 | switch ($rootScope.shapeType) { | 1118 | switch ($rootScope.shapeType) { |
@@ -1120,7 +1120,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -1120,7 +1120,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
1120 | case "cursor": | 1120 | case "cursor": |
1121 | // ctx.clearRect(0, 0, 2277, 3248); | 1121 | // ctx.clearRect(0, 0, 2277, 3248); |
1122 | ctx.beginPath(); | 1122 | ctx.beginPath(); |
1123 | - ctx1.beginPath(); | 1123 | + PaintCanvasctx.beginPath(); |
1124 | 1124 | ||
1125 | 1125 | ||
1126 | break; | 1126 | break; |