From caaa4c9cbe6178371df609662d0ef7028abf8388 Mon Sep 17 00:00:00 2001 From: Mukul Date: Tue, 27 Dec 2016 18:04:54 +0530 Subject: [PATCH] this is solution for bug erase not work on layer change --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index f81d04d..5f2fedb 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -776,7 +776,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo // annotation toolbar canvas if ($("#canvasDiv").find("canvas[id='canvasPaint']").length == 0) { - $("#canvasDiv").append(''); + var $layerChange = $("#canvasDiv").append(''); + $compile($layerChange)($scope); $scope.BindCanvasDrawingListners(); // $rootScope.FreeStylePaint(); -- libgit2 0.21.4