Browse Source

Destroy sandbox API when scope is destroyed.

pull/196/head
Joachim Bauch 10 years ago
parent
commit
f59eb17cf3
  1. 1
      static/js/directives/pdfcanvas.js

1
static/js/directives/pdfcanvas.js

@ -266,6 +266,7 @@ define(['require', 'underscore', 'jquery', 'text!partials/pdfcanvas_sandbox.html @@ -266,6 +266,7 @@ define(['require', 'underscore', 'jquery', 'text!partials/pdfcanvas_sandbox.html
$scope.$on("$destroy", function() {
pdfCanvas.close();
pdfCanvas = null;
sandboxApi.destroy();
});
$scope.$watch("currentPageNumber", function(page, oldValue) {

Loading…
Cancel
Save