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

Fix typo in delay.js DelaySelectorObservable #1557

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/modular/observable/delay.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ DelayAbsoluteObservable.prototype.subscribe = function (o) {
return obs.subscribe(o);
};

function DelaySelectorObseravble(source, subscriptionDelay, delayDurationSelector) {
function DelaySelectorObservable(source, subscriptionDelay, delayDurationSelector) {
this.source = source;
this._selector = null;
this._subDelay = null;
Expand All @@ -133,9 +133,9 @@ function DelaySelectorObseravble(source, subscriptionDelay, delayDurationSelecto
ObservableBase.call(this);
}

inherits(DelaySelectorObseravble, ObservableBase);
inherits(DelaySelectorObservable, ObservableBase);

DelaySelectorObseravble.prototype.subscribeCore = function (o) {
DelaySelectorObservable.prototype.subscribeCore = function (o) {
var delays = new CompositeDisposable(),
atEnd = false,
subscription = new SerialDisposable(),
Expand Down Expand Up @@ -203,7 +203,7 @@ module.exports = function delay () {
new DelayAbsoluteObservable(source, dueTime, scheduler) :
new DelayRelativeObservable(source, dueTime, scheduler);
} else if (isObservable(firstArg) || isFunction(firstArg)) {
return new DelaySelectorObseravble(source, firstArg, arguments[2]);
return new DelaySelectorObservable(source, firstArg, arguments[2]);
} else {
throw new Error('Invalid arguments');
}
Expand Down