Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Commit

Permalink
$interval.cancel() not $interval.stop()
Browse files Browse the repository at this point in the history
Fixes #39
  • Loading branch information
jasny committed Oct 27, 2016
1 parent 506fbc8 commit 6deb155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signature.js
Expand Up @@ -113,7 +113,7 @@ angular.module('signature').directive('signaturePad', ['$interval', '$timeout',

var resizeIH = $interval(calculateScale, 200);
scope.$on('$destroy', function () {
$interval.stop(resizeIH);
$interval.cancel(resizeIH);
resizeIH = null;
});

Expand Down

0 comments on commit 6deb155

Please sign in to comment.