Skip to content

Commit

Permalink
Merge pull request #8 from coreui/dev-v2-beta-2
Browse files Browse the repository at this point in the history
v2.0.0.0-beta 2
  • Loading branch information
xidedix authored Apr 30, 2018
2 parents 7807197 + 181a81e commit 65016b1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
// import registerServiceWorker from './registerServiceWorker';
import './polyfill'

ReactDOM.render(<App />, document.querySelector('#demo'))
// ReactDOM.render(<App />, document.getElementById('root'));
Expand Down
24 changes: 24 additions & 0 deletions demo/src/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// IE11 polyfills

if (!Array.prototype.find) {
Array.prototype.find = function(predicate) {
if (this == null) {
throw new TypeError('Array.prototype.find called on null or undefined');
}
if (typeof predicate !== 'function') {
throw new TypeError('predicate must be a function');
}
const list = Object(this);
const length = list.length >>> 0;
const thisArg = arguments[1];
let value;

for (let i = 0; i < length; i++) {
value = list[i];
if (predicate.call(thisArg, value, i, list)) {
return value;
}
}
return undefined;
};
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coreui/react",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"description": "CoreUI React Bootstrap 4 components",
"main": "lib/index.js",
"module": "es/index.js",
Expand All @@ -21,7 +21,7 @@
"lint": "eslint src"
},
"dependencies": {
"@coreui/coreui": "^2.0.0-beta.10",
"@coreui/coreui": "^2.0.0-rc.1",
"bootstrap": "^4.1.0",
"classnames": "^2.2.5",
"prop-types": "^15.6.1",
Expand All @@ -45,7 +45,7 @@
"nwb": "^0.21.5",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"sinon": "^4.5.0"
"sinon": "^5.0.1"
},
"author": "Łukasz Holeczek",
"homepage": "http://coreui.io",
Expand Down

0 comments on commit 65016b1

Please sign in to comment.