Skip to content

Commit 90c9b1a

Browse files
Bump version
1 parent 696489e commit 90c9b1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-load-script",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "react-load-script enables you to easily create components which depend on third party JS scripts",
55
"main": "lib/index.js",
66
"author": "Blueberry",

src/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ import { PropTypes as RPT } from 'prop-types';
44
export default class Script extends React.Component {
55

66
static propTypes = {
7+
attributes: RPT.object, // eslint-disable-line react/forbid-prop-types
78
onCreate: RPT.func,
89
onError: RPT.func.isRequired,
910
onLoad: RPT.func.isRequired,
1011
url: RPT.string.isRequired,
11-
attributes: RPT.object,
1212
};
1313

1414
static defaultProps = {
15+
attributes: {},
1516
onCreate: () => {},
1617
onError: () => {},
1718
onLoad: () => {},
18-
attributes: {},
1919
}
2020

2121
// A dictionary mapping script URLs to a dictionary mapping

0 commit comments

Comments
 (0)