From bdc1e0e0640ac677f52388d99b046da7b961eed4 Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 9 Feb 2017 15:08:52 +0530 Subject: [PATCH] removing everyting on view chnage --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index fc3f72d..275d64d 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -6937,8 +6937,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.layerNumber = 0; //remove existing body view - $scope.flushCanvas(); - + var canDiv = document.getElementById('canvasDiv'); + var canDivChildCount = canDiv.childElementCount; + if (canDivChildCount > 0) { + canDiv.innerHTML = ''; + } var selectedViewId = $scope.bodyViews[event.currentTarget.title]; $rootScope.viewOrientationId = selectedViewId; -- libgit2 0.21.4