Commit 4ad4efb8 authored by Mike Greiling's avatar Mike Greiling

refactor TreeView class to ES module syntax

parent 12efe494
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
/* global MilestoneSelect */ /* global MilestoneSelect */
/* global Commit */ /* global Commit */
/* global NotificationsForm */ /* global NotificationsForm */
/* global TreeView */
/* global NotificationsDropdown */ /* global NotificationsDropdown */
/* global GroupAvatar */ /* global GroupAvatar */
/* global LineHighlighter */ /* global LineHighlighter */
...@@ -52,6 +51,7 @@ import UsersSelect from './users_select'; ...@@ -52,6 +51,7 @@ import UsersSelect from './users_select';
import RefSelectDropdown from './ref_select_dropdown'; import RefSelectDropdown from './ref_select_dropdown';
import GfmAutoComplete from './gfm_auto_complete'; import GfmAutoComplete from './gfm_auto_complete';
import ShortcutsBlob from './shortcuts_blob'; import ShortcutsBlob from './shortcuts_blob';
import TreeView from './tree';
import UsagePing from './usage_ping'; import UsagePing from './usage_ping';
import UsernameValidator from './username_validator'; import UsernameValidator from './username_validator';
import VersionCheckImage from './version_check_image'; import VersionCheckImage from './version_check_image';
......
...@@ -153,7 +153,6 @@ import './subscription_select'; ...@@ -153,7 +153,6 @@ import './subscription_select';
import './syntax_highlight'; import './syntax_highlight';
import './task_list'; import './task_list';
import './todos'; import './todos';
import './tree';
import './user'; import './user';
// eslint-disable-next-line global-require, import/no-commonjs // eslint-disable-next-line global-require, import/no-commonjs
......
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, quotes, consistent-return, no-var, one-var, one-var-declaration-per-line, no-else-return, prefer-arrow-callback, class-methods-use-this */ /* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, quotes, consistent-return, no-var, one-var, one-var-declaration-per-line, no-else-return, prefer-arrow-callback, class-methods-use-this */
class TreeView { export default class TreeView {
constructor() { constructor() {
this.initKeyNav(); this.initKeyNav();
// Code browser tree slider // Code browser tree slider
...@@ -62,5 +62,3 @@ class TreeView { ...@@ -62,5 +62,3 @@ class TreeView {
}); });
} }
} }
window.TreeView = TreeView;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment