diff options
author | Fatih Acet <acetfatih@gmail.com> | 2018-07-12 00:32:35 +0200 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2018-07-18 12:55:55 +0200 |
commit | 1f2d2511441c71afa04ba053230cda6afb35d51e (patch) | |
tree | 55677cac8852ad5f43c6bd3f81d5bff8cc91623f /app/assets/javascripts/autosave.js | |
parent | 46e1eb1cb2d79c135f1ec0263642164114958e0d (diff) | |
download | gitlab-ce-1f2d2511441c71afa04ba053230cda6afb35d51e.tar.gz |
Add dispose method to autosave mixin.
Diffstat (limited to 'app/assets/javascripts/autosave.js')
-rw-r--r-- | app/assets/javascripts/autosave.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/autosave.js b/app/assets/javascripts/autosave.js index fa00a3cf386..e8c59fab609 100644 --- a/app/assets/javascripts/autosave.js +++ b/app/assets/javascripts/autosave.js @@ -53,4 +53,8 @@ export default class Autosave { return window.localStorage.removeItem(this.key); } + + dispose() { + this.field.off('input'); + } } |