We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1e4efe commit b43de31Copy full SHA for b43de31
lib/core_dom/web_platform.dart
@@ -9,20 +9,16 @@ part of angular.core.dom_internal;
9
*/
10
@Injectable()
11
class WebPlatform {
12
- js.JsObject _platformJs;
13
js.JsObject _shadowCss;
14
15
bool get cssShimRequired => _shadowCss != null;
16
bool get shadowDomShimRequired => _shadowCss != null;
17
18
WebPlatform() {
19
- var _platformJs = js.context['Platform'];
20
- if (_platformJs != null) {
21
- _shadowCss = _platformJs['ShadowCSS'];
22
-
23
- if (_shadowCss != null) {
24
- _shadowCss['strictStyling'] = true;
25
- }
+ var platformJs = js.context['Platform'];
+ if (platformJs != null) {
+ _shadowCss = platformJs['ShadowCSS'];
+ if (_shadowCss != null) _shadowCss['strictStyling'] = true;
26
}
27
28
0 commit comments