File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## Unreleased
4
+
5
+ ### Fixed
6
+
7
+ - Null property assignment regression in mount function. [ #456 ]
8
+
3
9
## [ 4.0.1] - 2018-09-09
4
10
5
11
### Fixed
Original file line number Diff line number Diff line change 1
1
function failure ( ) {
2
- const root = document . documentElement
3
-
4
- root . classList . remove ( 'sr' )
2
+ document . documentElement . classList . remove ( 'sr' )
5
3
6
4
return {
7
5
clean ( ) { } ,
@@ -15,13 +13,10 @@ function failure() {
15
13
}
16
14
17
15
function success ( ) {
18
- const html = document . documentElement
19
- const body = document . body
20
-
21
- html . classList . add ( 'sr' )
16
+ document . documentElement . classList . add ( 'sr' )
22
17
23
- if ( body ) {
24
- body . style . height = '100%'
18
+ if ( document . body ) {
19
+ document . body . style . height = '100%'
25
20
} else {
26
21
document . addEventListener ( 'DOMContentLoaded' , ( ) => {
27
22
document . body . style . height = '100%'
You can’t perform that action at this time.
0 commit comments