Index: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
index fac5fb276ce6637d5e1f6561bb7e0cb5cda36bc6..34c2bbab129fe697dbe9020d6bea3470a39159d5 100644 |
--- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
@@ -104,7 +104,7 @@ $endif |
$if DART2JS |
var replacedMs = JS('String', r'#.replace(/^-ms-/, "ms-")', hyphenated); |
- var fToUpper = const JS_CONST( |
+ var fToUpper = JS('', |
r'function(_, letter) { return letter.toUpperCase(); }'); |
return JS('String', r'#.replace(/-([\da-z])/ig, #)', replacedMs, fToUpper); |
sra1
2017/05/23 20:26:18
You could inline it here.
return JS('String',
Alan Knight
2017/05/23 21:42:37
Done.
|
$else |