You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
I've been using RxJS with great success so far in a project that needs to support IE8. I've recently found an issue with Rx.Observable.fromEvent in IE8. This issue prevents using fromEvent with querySelectorAll. I've also found a fix for that problem, which I've included in this pull request.
To explain what's wrong with IE8:
document.querySelectorAll returns a StaticNodeList instead of NodeList
Object.prototype.toString.call() works differently in IE8:
// In IE8
// Assume `obj` is an instanceof NodeList
console.log(Object.prototype.toString.call(obj)) // => '[object Object]'
console.log(Object.prototype.toString.call(obj.constructor) // => '[object NodeList]'
console.log(Object.prototype.toString.call(MyClass)) // => '[object NodeList]'
// In an actual web browser
// Assume `obj` is an instanceof NodeList
console.log(Object.prototype.toString.call(obj)) // => '[object NodeList]'
console.log(Object.prototype.toString.call(obj.constructor)) // => '[object Function]'
console.log(Object.prototype.toString.call(MyClass)) // => '[object Function]'
The text was updated successfully, but these errors were encountered:
I've been using RxJS with great success so far in a project that needs to support IE8. I've recently found an issue with Rx.Observable.fromEvent in IE8. This issue prevents using fromEvent with
querySelectorAll
. I've also found a fix for that problem, which I've included in this pull request.To explain what's wrong with IE8:
document.querySelectorAll
returns aStaticNodeList
instead ofNodeList
Object.prototype.toString.call()
works differently in IE8:The text was updated successfully, but these errors were encountered: