Skip to content

Commit 65016b1

Browse files
authored
Merge pull request #8 from coreui/dev-v2-beta-2
v2.0.0.0-beta 2
2 parents 7807197 + 181a81e commit 65016b1

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

demo/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import ReactDOM from 'react-dom';
33
import App from './App';
44
// import registerServiceWorker from './registerServiceWorker';
5+
import './polyfill'
56

67
ReactDOM.render(<App />, document.querySelector('#demo'))
78
// ReactDOM.render(<App />, document.getElementById('root'));

demo/src/polyfill.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// IE11 polyfills
2+
3+
if (!Array.prototype.find) {
4+
Array.prototype.find = function(predicate) {
5+
if (this == null) {
6+
throw new TypeError('Array.prototype.find called on null or undefined');
7+
}
8+
if (typeof predicate !== 'function') {
9+
throw new TypeError('predicate must be a function');
10+
}
11+
const list = Object(this);
12+
const length = list.length >>> 0;
13+
const thisArg = arguments[1];
14+
let value;
15+
16+
for (let i = 0; i < length; i++) {
17+
value = list[i];
18+
if (predicate.call(thisArg, value, i, list)) {
19+
return value;
20+
}
21+
}
22+
return undefined;
23+
};
24+
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/react",
3-
"version": "2.0.0-beta.1",
3+
"version": "2.0.0-beta.2",
44
"description": "CoreUI React Bootstrap 4 components",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -21,7 +21,7 @@
2121
"lint": "eslint src"
2222
},
2323
"dependencies": {
24-
"@coreui/coreui": "^2.0.0-beta.10",
24+
"@coreui/coreui": "^2.0.0-rc.1",
2525
"bootstrap": "^4.1.0",
2626
"classnames": "^2.2.5",
2727
"prop-types": "^15.6.1",
@@ -45,7 +45,7 @@
4545
"nwb": "^0.21.5",
4646
"react": "^16.3.2",
4747
"react-dom": "^16.3.2",
48-
"sinon": "^4.5.0"
48+
"sinon": "^5.0.1"
4949
},
5050
"author": "Łukasz Holeczek",
5151
"homepage": "http://coreui.io",

0 commit comments

Comments
 (0)