Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix(rxjs): fix #863, fix asap scheduler issue, add testcases #848

Merged
merged 18 commits into from
Aug 8, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add null check if operators are not loaded
  • Loading branch information
JiaLiPassion committed Aug 7, 2017
commit 64039d1fe693f5a294be26f037ff45dde9891d5a
12 changes: 12 additions & 0 deletions lib/rxjs/rxjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ import {rxSubscriber} from 'rxjs/symbol/rxSubscriber';
return;
}
const factoryCreator: any = obj[symbolFactory] = obj[factoryName];
if (!factoryCreator) {
return;
}
obj[factoryName] = function() {
const factory: any = factoryCreator.apply(this, arguments);
return function() {
Expand All @@ -230,6 +233,9 @@ import {rxSubscriber} from 'rxjs/symbol/rxSubscriber';
return;
}
const factory: any = obj[symbolFactory] = obj[factoryName];
if (!factory) {
return;
}
obj[factoryName] = function() {
const observable = factory.apply(this, arguments);
patchObservableInstance(observable);
Expand All @@ -243,6 +249,9 @@ import {rxSubscriber} from 'rxjs/symbol/rxSubscriber';
return;
}
const factory: any = obj[symbolFactory] = obj[factoryName];
if (!factory) {
return;
}
obj[factoryName] = function() {
const initZone = Zone.current;
const args = Array.prototype.slice.call(arguments);
Expand Down Expand Up @@ -275,6 +284,9 @@ import {rxSubscriber} from 'rxjs/symbol/rxSubscriber';
return;
}
const factory: any = obj[symbolFactory] = obj[factoryName];
if (!factory) {
return;
}
obj[factoryName] = function() {
const _zone: any = Zone.current;
const args = Array.prototype.slice.call(arguments);
Expand Down