Skip to content

Commit

Permalink
Merge pull request #116 from didi/bugfix
Browse files Browse the repository at this point in the history
compatible
  • Loading branch information
hiyuki authored Apr 29, 2019
2 parents 55d2f4e + 6fa3ae6 commit 8596787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/webpack-plugin/lib/runtime/injectHelper.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function isDef (v) {
}

function stringifyClass (value) {
if (value === undefined) return ''
if (likeArray(value)) {
return stringifyArray(value)
}
Expand Down Expand Up @@ -178,6 +179,7 @@ function mergeObjectArray (arr) {
}

function normalizeDynamicStyle (value) {
if (value === undefined) return {}
if (likeArray(value)) {
return mergeObjectArray(value)
}
Expand Down

0 comments on commit 8596787

Please sign in to comment.