diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-07-06 21:19:41 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-07-06 21:19:41 +0300 |
commit | a23db42e07d97b6739207808382175f5a53bf748 (patch) | |
tree | 0a6be9d04aa3a1c3d01220745fb5fb6c2e55f915 /app/assets/javascripts/star.js | |
parent | d990df7481f3775a27cc6a09d7400f66628411da (diff) |
refactor Star class to ES module syntax
Diffstat (limited to 'app/assets/javascripts/star.js')
-rw-r--r-- | app/assets/javascripts/star.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/star.js b/app/assets/javascripts/star.js index f4784901453..6d38124f1c1 100644 --- a/app/assets/javascripts/star.js +++ b/app/assets/javascripts/star.js @@ -1,7 +1,7 @@ /* eslint-disable func-names, space-before-function-paren, wrap-iife, no-unused-vars, one-var, no-var, one-var-declaration-per-line, prefer-arrow-callback, no-new, max-len */ /* global Flash */ -class Star { +export default class Star { constructor() { $('.project-home-panel .toggle-star').on('ajax:success', function(e, data, status, xhr) { var $starIcon, $starSpan, $this, toggleStar; @@ -24,5 +24,3 @@ class Star { }); } } - -window.Star = Star; |