Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit c3f6f12

Browse files
Fixing fromEvent
1 parent 6dc2d5c commit c3f6f12

13 files changed

Lines changed: 22 additions & 42 deletions

dist/rx.all.compat.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6647,20 +6647,16 @@
66476647
};
66486648
};
66496649

6650-
/**
6651-
* Returns true if `el` is a NodeList or StaticNodeList (IE8 querySelectorAll returns a StaticNodeList)
6652-
* @param {object} el
6653-
* @returns {boolean}
6654-
*/
66556650
function isNodeList(el) {
66566651
if (window.StaticNodeList) {
66576652
// IE8 Specific
66586653
// instanceof is slower than Object#toString, but Object#toString will not work as intended in IE8
6659-
return (el instanceof window.StaticNodeList || el instanceof NodeList);
6654+
return (el instanceof window.StaticNodeList || el instanceof window.NodeList);
66606655
} else {
66616656
return (Object.prototype.toString.call(el) == '[object NodeList]')
66626657
}
66636658
}
6659+
66646660
function fixEvent(event) {
66656661
var stopPropagation = function () {
66666662
this.cancelBubble = true;

dist/rx.all.compat.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.compat.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.async.compat.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,20 +379,16 @@
379379
};
380380
};
381381

382-
/**
383-
* Returns true if `el` is a NodeList or StaticNodeList (IE8 querySelectorAll returns a StaticNodeList)
384-
* @param {object} el
385-
* @returns {boolean}
386-
*/
387382
function isNodeList(el) {
388383
if (window.StaticNodeList) {
389384
// IE8 Specific
390385
// instanceof is slower than Object#toString, but Object#toString will not work as intended in IE8
391-
return (el instanceof window.StaticNodeList || el instanceof NodeList);
386+
return (el instanceof window.StaticNodeList || el instanceof window.NodeList);
392387
} else {
393388
return (Object.prototype.toString.call(el) == '[object NodeList]')
394389
}
395390
}
391+
396392
function fixEvent(event) {
397393
var stopPropagation = function () {
398394
this.cancelBubble = true;

dist/rx.async.compat.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.async.compat.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.lite.compat.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4750,20 +4750,16 @@
47504750
};
47514751
};
47524752

4753-
/**
4754-
* Returns true if `el` is a NodeList or StaticNodeList (IE8 querySelectorAll returns a StaticNodeList)
4755-
* @param {object} el
4756-
* @returns {boolean}
4757-
*/
47584753
function isNodeList(el) {
47594754
if (window.StaticNodeList) {
47604755
// IE8 Specific
47614756
// instanceof is slower than Object#toString, but Object#toString will not work as intended in IE8
4762-
return (el instanceof window.StaticNodeList || el instanceof NodeList);
4757+
return (el instanceof window.StaticNodeList || el instanceof window.NodeList);
47634758
} else {
47644759
return (Object.prototype.toString.call(el) == '[object NodeList]')
47654760
}
47664761
}
4762+
47674763
function fixEvent(event) {
47684764
var stopPropagation = function () {
47694765
this.cancelBubble = true;

dist/rx.lite.compat.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.lite.compat.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/rx-lite-compat/rx.lite.compat.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4750,20 +4750,16 @@
47504750
};
47514751
};
47524752

4753-
/**
4754-
* Returns true if `el` is a NodeList or StaticNodeList (IE8 querySelectorAll returns a StaticNodeList)
4755-
* @param {object} el
4756-
* @returns {boolean}
4757-
*/
47584753
function isNodeList(el) {
47594754
if (window.StaticNodeList) {
47604755
// IE8 Specific
47614756
// instanceof is slower than Object#toString, but Object#toString will not work as intended in IE8
4762-
return (el instanceof window.StaticNodeList || el instanceof NodeList);
4757+
return (el instanceof window.StaticNodeList || el instanceof window.NodeList);
47634758
} else {
47644759
return (Object.prototype.toString.call(el) == '[object NodeList]')
47654760
}
47664761
}
4762+
47674763
function fixEvent(event) {
47684764
var stopPropagation = function () {
47694765
this.cancelBubble = true;

0 commit comments

Comments
 (0)