Skip to content

Commit 99d333f

Browse files
committed
[changed] use lodash-compat for IE8 compatibility and lodash for dev
1 parent 1463e98 commit 99d333f

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

docs/src/PropTable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import merge from 'lodash/object/merge';
1+
import merge from 'lodash-compat/object/merge';
22
import React from 'react';
33
import Glyphicon from '../../src/Glyphicon';
44
import Label from '../../src/Label';

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"karma-webpack": "^1.7.0",
8686
"less": "^2.5.1",
8787
"less-loader": "^2.2.0",
88+
"lodash": "^3.10.1",
8889
"marked": "^0.3.5",
8990
"mocha": "^2.2.5",
9091
"mt-changelog": "^0.6.1",
@@ -113,7 +114,7 @@
113114
"classnames": "^2.1.3",
114115
"dom-helpers": "^2.2.4",
115116
"keycode": "^2.0.0",
116-
"lodash": "^3.10.0",
117+
"lodash-compat": "^3.10.1",
117118
"react-overlays": "^0.4.4",
118119
"uncontrollable": "^3.1.1"
119120
},

src/Dropdown.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import DropdownMenu from './DropdownMenu';
88
import CustomPropTypes from './utils/CustomPropTypes';
99
import ValidComponentChildren from './utils/ValidComponentChildren';
1010
import createChainedFunction from './utils/createChainedFunction';
11-
import find from 'lodash/collection/find';
12-
import omit from 'lodash/object/omit';
11+
import find from 'lodash-compat/collection/find';
12+
import omit from 'lodash-compat/object/omit';
1313

1414
import activeElement from 'dom-helpers/activeElement';
1515
import contains from 'dom-helpers/query/contains';

src/DropdownButton.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Dropdown from './Dropdown';
44
import NavDropdown from './NavDropdown';
55
import CustomPropTypes from './utils/CustomPropTypes';
66
import deprecationWarning from './utils/deprecationWarning';
7-
import omit from 'lodash/object/omit';
7+
import omit from 'lodash-compat/object/omit';
88

99
class DropdownButton extends React.Component {
1010

src/OverlayTrigger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import createChainedFunction from './utils/createChainedFunction';
55
import createContextWrapper from './utils/createContextWrapper';
66
import Overlay from './Overlay';
77
import warning from 'react/lib/warning';
8-
import pick from 'lodash/object/pick';
8+
import pick from 'lodash-compat/object/pick';
99
/**
1010
* Check if value one is inside or equal to the of value
1111
*

0 commit comments

Comments
 (0)