Remove old MutationObserver workaround for MS Edge. #904
This commit is contained in:
parent
fca71d22d6
commit
d1232b474d
@ -124,11 +124,6 @@ $.asap = (test, cb) ->
|
|||||||
$.onExists = (root, selector, cb) ->
|
$.onExists = (root, selector, cb) ->
|
||||||
if el = $ selector, root
|
if el = $ selector, root
|
||||||
return cb el
|
return cb el
|
||||||
# XXX Edge doesn't notify MutationObservers of nodes added as document loads.
|
|
||||||
if $.engine is 'edge' and d.readyState is 'loading'
|
|
||||||
$.asap (-> d.readyState isnt 'loading' or $ selector, root), ->
|
|
||||||
$.onExists root, selector, cb
|
|
||||||
return
|
|
||||||
observer = new MutationObserver ->
|
observer = new MutationObserver ->
|
||||||
if el = $ selector, root
|
if el = $ selector, root
|
||||||
observer.disconnect()
|
observer.disconnect()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user