refactor Star class to ES module syntax
This commit is contained in:
parent
d990df7481
commit
a23db42e07
2 changed files with 2 additions and 4 deletions
|
@ -22,7 +22,6 @@
|
|||
/* global ProjectAvatar */
|
||||
/* global CompareAutocomplete */
|
||||
/* global ProjectNew */
|
||||
/* global Star */
|
||||
/* global ProjectShow */
|
||||
/* global Labels */
|
||||
/* global Shortcuts */
|
||||
|
@ -51,6 +50,7 @@ import UsersSelect from './users_select';
|
|||
import RefSelectDropdown from './ref_select_dropdown';
|
||||
import GfmAutoComplete from './gfm_auto_complete';
|
||||
import ShortcutsBlob from './shortcuts_blob';
|
||||
import Star from './star';
|
||||
import Todos from './todos';
|
||||
import TreeView from './tree';
|
||||
import UsagePing from './usage_ping';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue