Skip to content

Commit b43de31

Browse files
committed
refactor(WebPlatform): remove an unused property
1 parent e1e4efe commit b43de31

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/core_dom/web_platform.dart

+4-8
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ part of angular.core.dom_internal;
99
*/
1010
@Injectable()
1111
class WebPlatform {
12-
js.JsObject _platformJs;
1312
js.JsObject _shadowCss;
1413

1514
bool get cssShimRequired => _shadowCss != null;
1615
bool get shadowDomShimRequired => _shadowCss != null;
1716

1817
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-
}
18+
var platformJs = js.context['Platform'];
19+
if (platformJs != null) {
20+
_shadowCss = platformJs['ShadowCSS'];
21+
if (_shadowCss != null) _shadowCss['strictStyling'] = true;
2622
}
2723
}
2824

0 commit comments

Comments
 (0)