diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-05 17:57:49 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-06 12:50:34 +0300 |
commit | 3616e063e3dafc6eb4e627aa211e1030788b0be2 (patch) | |
tree | 3340f6060bf25bbe465ba999064ba40e116939a6 /app/assets/javascripts/abuse_reports.js | |
parent | cbc7d62c2982135d5edd8e1ea1c32d35cc60d46f (diff) |
Convert AbuseReports class to a module
Diffstat (limited to 'app/assets/javascripts/abuse_reports.js')
-rw-r--r-- | app/assets/javascripts/abuse_reports.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/abuse_reports.js b/app/assets/javascripts/abuse_reports.js index 346de4ad11e..3de192d56eb 100644 --- a/app/assets/javascripts/abuse_reports.js +++ b/app/assets/javascripts/abuse_reports.js @@ -1,7 +1,7 @@ const MAX_MESSAGE_LENGTH = 500; const MESSAGE_CELL_SELECTOR = '.abuse-reports .message'; -class AbuseReports { +export default class AbuseReports { constructor() { $(MESSAGE_CELL_SELECTOR).each(this.truncateLongMessage); $(document) @@ -32,6 +32,3 @@ class AbuseReports { } } } - -window.gl = window.gl || {}; -window.gl.AbuseReports = AbuseReports; |