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

Commit 65f25d3

Browse files
Fixing Issue #498
1 parent 2c6147f commit 65f25d3

26 files changed

Lines changed: 272 additions & 134 deletions

dist/rx.all.compat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5816,7 +5816,7 @@
58165816
// Use only if non-native events are allowed
58175817
if (!Rx.config.useNativeEvents) {
58185818
// Handles jq, Angular.js, Zepto, Marionette
5819-
if (element.on === 'function' && element.off === 'function') {
5819+
if (typeof element.on === 'function' && typeof element.off === 'function') {
58205820
return fromEventPattern(
58215821
function (h) { element.on(eventName, h); },
58225822
function (h) { element.off(eventName, h); },
@@ -6794,7 +6794,7 @@
67946794
return subscription;
67956795
};
67966796

6797-
__super__.call(this, subject.subscribe.bind(subject));
6797+
__super__.call(this, function (o) { return subject.subscribe(o); });
67986798
}
67996799

68006800
ConnectableObservable.prototype.refCount = function () {

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: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5559,7 +5559,7 @@
55595559
// Use only if non-native events are allowed
55605560
if (!Rx.config.useNativeEvents) {
55615561
// Handles jq, Angular.js, Zepto, Marionette
5562-
if (element.on === 'function' && element.off === 'function') {
5562+
if (typeof element.on === 'function' && typeof element.off === 'function') {
55635563
return fromEventPattern(
55645564
function (h) { element.on(eventName, h); },
55655565
function (h) { element.off(eventName, h); },
@@ -6537,7 +6537,7 @@
65376537
return subscription;
65386538
};
65396539

6540-
__super__.call(this, subject.subscribe.bind(subject));
6540+
__super__.call(this, function (o) { return subject.subscribe(o); });
65416541
}
65426542

65436543
ConnectableObservable.prototype.refCount = function () {

dist/rx.all.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.min.js

Lines changed: 2 additions & 2 deletions
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
// Use only if non-native events are allowed
499499
if (!Rx.config.useNativeEvents) {
500500
// Handles jq, Angular.js, Zepto, Marionette
501-
if (element.on === 'function' && element.off === 'function') {
501+
if (typeof element.on === 'function' && typeof element.off === 'function') {
502502
return fromEventPattern(
503503
function (h) { element.on(eventName, h); },
504504
function (h) { element.off(eventName, h); },

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.async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@
430430
// Use only if non-native events are allowed
431431
if (!Rx.config.useNativeEvents) {
432432
// Handles jq, Angular.js, Zepto, Marionette
433-
if (element.on === 'function' && element.off === 'function') {
433+
if (typeof element.on === 'function' && typeof element.off === 'function') {
434434
return fromEventPattern(
435435
function (h) { element.on(eventName, h); },
436436
function (h) { element.off(eventName, h); },

0 commit comments

Comments
 (0)