Skip to content

Commit c8d22e4

Browse files
committed
Merge branch 'master' of github.com:500tech/angular-tree-component
2 parents 7f42ccd + d0b2356 commit c8d22e4

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

lib/components/tree-viewport.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ import {
44
import { TreeVirtualScroll } from '../models/tree-virtual-scroll.model';
55
import { deprecatedSelector } from '../deprecated-selector';
66

7-
const SCROLL_REFRESH_INTERVAL = 17;
8-
9-
const isFirefox = navigator && navigator.userAgent && navigator.userAgent.indexOf('Firefox') > -1;
10-
117
@Component({
128
selector: 'TreeViewport, tree-viewport',
139
styles: [

lib/components/tree.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { TreeNode } from '../models/tree-node.model';
77
import { TreeDraggedElement } from '../models/tree-dragged-element.model';
88
import { TreeOptions } from '../models/tree-options.model';
99

10-
import { includes, pick } from 'lodash-es';
10+
import { includes } from 'lodash-es/includes';
11+
import { pick } from 'lodash-es/pick';
1112
import { deprecatedSelector } from '../deprecated-selector';
1213

1314
@Component({

lib/models/tree-node.model.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { TreeOptions } from './tree-options.model';
44
import { ITreeNode } from '../defs/api';
55
import { TREE_EVENTS } from '../constants/events';
66

7-
import { first, last } from 'lodash-es';
7+
import { first } from 'lodash-es/first';
8+
import { last } from 'lodash-es/last';
89

910
export class TreeNode implements ITreeNode {
1011
@computed get isHidden() { return this.treeModel.isHidden(this); };

lib/models/tree-options.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TreeModel } from './tree.model';
33
import { KEYS } from '../constants/keys';
44
import { ITreeOptions } from '../defs/api';
55

6-
import { defaultsDeep } from 'lodash-es';
6+
import { defaultsDeep } from 'lodash-es/defaultsDeep';
77

88
export interface IActionHandler {
99
(tree: TreeModel, node: TreeNode, $event: any, ...rest);

lib/models/tree.model.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ import { TreeVirtualScroll } from './tree-virtual-scroll.model';
66
import { ITreeModel } from '../defs/api';
77
import { TREE_EVENTS } from '../constants/events';
88

9-
import { first, last, compact, find, includes, remove, indexOf, pullAt, isString, isFunction } from 'lodash-es';
9+
import { first } from 'lodash-es/first';
10+
import { last } from 'lodash-es/last';
11+
import { compact } from 'lodash-es/compact';
12+
import { find } from 'lodash-es/find';
13+
import { includes } from 'lodash-es/includes';
14+
import { remove } from 'lodash-es/remove';
15+
import { indexOf } from 'lodash-es/indexOf';
16+
import { pullAt } from 'lodash-es/pullAt';
17+
import { isString } from 'lodash-es/isString';
18+
import { isFunction } from 'lodash-es/isFunction';
1019

1120
@Injectable()
1221
export class TreeModel implements ITreeModel {

0 commit comments

Comments
 (0)