Skip to content

Commit de157ab

Browse files
Fix jsdoc for parse and styleParse in styleParser.js, obj is optional (#5743)
1 parent f5695c1 commit de157ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/styleParser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var DASH_REGEX = /-([a-z])/g;
99
* Deserialize style-like string into an object of properties.
1010
*
1111
* @param {string} value - HTML attribute value.
12-
* @param {object} obj - Reused object for object pooling.
12+
* @param {object} [obj] - Reused object for object pooling.
1313
* @returns {object} Property data.
1414
*/
1515
export function parse (value, obj) {
@@ -83,7 +83,7 @@ var getKeyValueChunks = (function () {
8383
* Convert a style attribute string to an object.
8484
*
8585
* @param {object} str - Attribute string.
86-
* @param {object} obj - Object to reuse as a base, else a new one will be allocated.
86+
* @param {object} [obj] - Object to reuse as a base, else a new one will be allocated.
8787
*/
8888
function styleParse (str, obj) {
8989
var chunks;

0 commit comments

Comments
 (0)