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

Commit

Permalink
Merge pull request #269 from LiskHQ/267-unbind-mousemove-passphrase
Browse files Browse the repository at this point in the history
Unbind mousemove listener on passphrase directive $destroy - Closes #267
  • Loading branch information
slaweet authored May 29, 2017
2 parents 81bc6f0 + 28c03f9 commit c891c96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/login/passphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ app.directive('passphrase', ($rootScope, $document, Passphrase, $mdDialog, $mdMe
$document.unbind('mousemove', listener);
};

scope.$on('$destroy', () => {
unbindEvents();
});

/**
* Uses passphrase.generatePassPhrase to generate passphrase from a given seed
* Randomly asks for one of the words in passphrase to ensure it's noted down
Expand Down

0 comments on commit c891c96

Please sign in to comment.