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

Fix methods name #1475

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 11 additions & 11 deletions doc/api/subjects/subject.md
Expand Up @@ -22,15 +22,15 @@ var subscription = subject.subscribe(
console.log('Completed');
});

subject.onNext(42);
subject.next(42);

// => Next: 42

subject.onNext(56);
subject.next(56);

// => Next: 56

subject.onCompleted();
subject.complete();

// => Completed
```
Expand Down Expand Up @@ -75,10 +75,10 @@ var subscription = subject.subscribe(
console.log('Completed');
});

subject.onNext(42);
subject.next(42);
// => Next: 42

subject.onCompleted();
subject.complete();
// => Completed
```

Expand Down Expand Up @@ -126,11 +126,11 @@ var observer = Rx.Observer.create(
var observable = Rx.Observable.create(function (obs) {

worker.onmessage = function (data) {
obs.onNext(data);
obs.next(data);
};

worker.onerror = function (err) {
obs.onError(err);
obs.error(err);
};

return function () {
Expand All @@ -151,7 +151,7 @@ var subscription = subject.subscribe(
console.log('Completed');
});

subject.onNext(42);
subject.next(42);
// => Next: 42

```
Expand Down Expand Up @@ -184,16 +184,16 @@ var subscription = subject.subscribe(
console.log('Completed');
});

subject.onNext(42);
subject.next(42);
// => Next: 42

subject.onCompleted();
subject.complete();
// => Completed

subject.dispose();

try {
subject.onNext(56);
subject.next(56);
} catch (e) {
console.log(e.message);
}
Expand Down