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

Commit

Permalink
Merge pull request #40 from legalthings/interval-cancel
Browse files Browse the repository at this point in the history
`$interval.cancel()` not `$interval.stop()`
  • Loading branch information
Sarfaraaz committed Oct 28, 2016
2 parents 506fbc8 + 6deb155 commit 2652a2e
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 2652a2e

Please sign in to comment.