Skip to content

Commit 8b888db

Browse files
committed
Switched to using lodash modules, to fix issue with lodash clobbering global _ variable.
1 parent 08e5897 commit 8b888db

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

src/group.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
/// @module
55
//----------------------------------------------------------------------------------------------------------------------
66

7-
import _ from 'lodash';
7+
import find from 'lodash/find';
8+
import uniq from 'lodash/uniq';
9+
import remove from 'lodash/remove';
10+
11+
var _ = {
12+
find,
13+
uniq,
14+
remove
15+
};
816

917
//----------------------------------------------------------------------------------------------------------------------
1018

src/trivialperms.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,25 @@
44
/// @module
55
//----------------------------------------------------------------------------------------------------------------------
66

7-
import _ from 'lodash';
7+
import map from 'lodash/map';
8+
import find from 'lodash/find';
9+
import some from 'lodash/some';
10+
import includes from 'lodash/includes';
11+
import isFunction from 'lodash/isFunction';
12+
813
import Promise from 'bluebird';
914
import TPGroup from './group';
1015

1116
//----------------------------------------------------------------------------------------------------------------------
1217

18+
var _ = {
19+
map,
20+
find,
21+
some,
22+
includes,
23+
isFunction
24+
};
25+
1326
var mapping = { permissions: 'permissions', groups: 'groups' };
1427

1528
//----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)