This repository was archived by the owner on Aug 24, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 44
44
"karma-coverage-istanbul-reporter" : " ^0.2.0" ,
45
45
"karma-jasmine" : " ~1.1.0" ,
46
46
"karma-jasmine-html-reporter" : " ^0.2.2" ,
47
- "lodash " : " ^4.6.1 " ,
47
+ "underscore " : " ^1.8.3 " ,
48
48
"node-watch" : " ^0.5.2" ,
49
49
"protractor" : " ~5.1.0" ,
50
50
"raf" : " ^3.1.0" ,
Original file line number Diff line number Diff line change 1
- import _ from 'lodash' ;
1
+ import _ from 'underscore' ;
2
+
2
3
import Sister from 'sister' ;
3
4
import rebound from 'rebound' ;
4
5
import vendorPrefix from 'vendor-prefix' ;
Original file line number Diff line number Diff line change 1
- import _ from 'lodash' ;
1
+ import _ from 'underscore' ;
2
+
2
3
import Sister from 'sister' ;
3
4
import rebound from 'rebound' ;
4
5
@@ -97,8 +98,8 @@ export const Stack = (config) => {
97
98
* @returns {Card|null }
98
99
*/
99
100
stack . getCard = ( element ) => {
100
- const group = _ . find ( index , {
101
- element
101
+ const group = _ . find ( index , ( i ) => {
102
+ return _ . isEqual ( i , element ) ;
102
103
} ) ;
103
104
104
105
if ( group ) {
Original file line number Diff line number Diff line change 1
- import _ from 'lodash ' ;
1
+ import _ from 'underscore ' ;
2
2
3
3
/**
4
4
* Return direct children elements.
@@ -8,8 +8,8 @@ import _ from 'lodash';
8
8
* @returns {Array }
9
9
*/
10
10
const elementChildren = ( element ) => {
11
- return _ . filter ( element . childNodes , {
12
- nodeType : 1
11
+ return _ . filter ( element . childNodes , ( elem ) => {
12
+ return elem . nodeType === 1 ;
13
13
} ) ;
14
14
} ;
15
15
You can’t perform that action at this time.
0 commit comments