]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(compiler-dom): changed function to arrow function (#487)
authorGabriel Loiácono <32134586+loiacon@users.noreply.github.com>
Mon, 25 Nov 2019 03:11:15 +0000 (00:11 -0300)
committerEvan You <yyx990803@gmail.com>
Mon, 25 Nov 2019 03:11:15 +0000 (22:11 -0500)
packages/compiler-dom/src/transforms/transformStyle.ts

index c612c8011b2e1d3c55c3648310dab2cd61e0f493..cb58f53a39cfe0f89bc8583a3514121353b03bf9 100644 (file)
@@ -35,7 +35,7 @@ const propertyDelimiterRE = /:(.+)/
 
 function parseInlineCSS(cssText: string): Record<string, string> {
   const res: Record<string, string> = {}
-  cssText.split(listDelimiterRE).forEach(function(item) {
+  cssText.split(listDelimiterRE).forEach(item => {
     if (item) {
       const tmp = item.split(propertyDelimiterRE)
       tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim())