Compare commits
No commits in common. "10791893815617642de98705d2dc3de73d58327f" and "26ed2dbc77dea089f769180940d452353826eee7" have entirely different histories.
1079189381
...
26ed2dbc77
@ -586,24 +586,10 @@ let Buffer = {
|
||||
vnode.state.controller = new AbortController()
|
||||
window.addEventListener('resize', event => Buffer.onupdate(vnode),
|
||||
{signal: vnode.state.controller.signal})
|
||||
|
||||
Buffer.setDateChangeTimeout(vnode)
|
||||
},
|
||||
|
||||
onremove: vnode => {
|
||||
vnode.state.controller.abort()
|
||||
clearTimeout(vnode.state.dateChangeTimeout)
|
||||
},
|
||||
|
||||
setDateChangeTimeout: vnode => {
|
||||
let midnight = new Date()
|
||||
midnight.setHours(24, 0, 0, 0)
|
||||
|
||||
// Note that this doesn't handle time zone changes correctly.
|
||||
vnode.state.dateChangeTimeout = setTimeout(() => {
|
||||
m.redraw()
|
||||
Buffer.setDateChangeTimeout(vnode)
|
||||
}, midnight - new Date())
|
||||
},
|
||||
|
||||
view: vnode => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user