This changes the notifyChange() method to fire once at the end of connectListeners()ref, removing the need for the additional debounce implementation ref.
Implementation Detail:
MediaQueryList#onchangeref is used to preserve the this argument passed into notifyChange()ref.
This changes the
notifyChange()
method to fire once at the end ofconnectListeners()
ref, removing the need for the additional debounce implementation ref.Implementation Detail:
MediaQueryList#onchange
ref is used to preserve thethis
argument passed intonotifyChange()
ref.