Skip to content

Commit 1017b25

Browse files
fix(attributes-to-props): undo default function parameter
Reverting the default parameter set in `attributesToProps` will enable ES5 compatibility since this code is not transpiled.
1 parent 9eeef55 commit 1017b25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/attributes-to-props.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ DOMProperty.injection.injectDOMPropertyConfig(
1212
/**
1313
* Makes attributes compatible with React props.
1414
*
15-
* @param {Object} attributes - The attributes.
16-
* @return {Object} - The props.
15+
* @param {Object} [attributes={}] - The attributes.
16+
* @return {Object} - The props.
1717
*/
18-
function attributesToProps(attributes = {}) {
18+
function attributesToProps(attributes) {
19+
attributes = attributes || {};
1920
var props = {};
2021
var propertyName;
2122
var propertyValue;

0 commit comments

Comments
 (0)