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

Commit 5761f5c

Browse files
Version bump to 2.4.4
1 parent a21a0d8 commit 5761f5c

28 files changed

Lines changed: 111 additions & 199 deletions

dist/rx.all.compat.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,15 +1358,9 @@
13581358
*/
13591359
Scheduler.prototype.schedulePeriodicWithState = function(state, period, action) {
13601360
if (typeof root.setInterval === 'undefined') { throw new NotSupportedError(); }
1361-
var s = state;
1362-
1363-
var id = root.setInterval(function () {
1364-
s = action(s);
1365-
}, period);
1366-
1367-
return disposableCreate(function () {
1368-
root.clearInterval(id);
1369-
});
1361+
period = normalizeTime(period);
1362+
var s = state, id = root.setInterval(function () { s = action(s); }, period);
1363+
return disposableCreate(function () { root.clearInterval(id); });
13701364
};
13711365

13721366
}(Scheduler.prototype));
@@ -1447,11 +1441,7 @@
14471441
}
14481442

14491443
var currentScheduler = new Scheduler(defaultNow, scheduleNow, notSupported, notSupported);
1450-
14511444
currentScheduler.scheduleRequired = function () { return !queue; };
1452-
currentScheduler.ensureTrampoline = function (action) {
1453-
if (!queue) { this.schedule(action); } else { action(); }
1454-
};
14551445

14561446
return currentScheduler;
14571447
}());
@@ -1576,7 +1566,7 @@
15761566
/**
15771567
* Gets a scheduler that schedules work via a timed callback based upon platform.
15781568
*/
1579-
var timeoutScheduler = Scheduler.timeout = (function () {
1569+
var timeoutScheduler = Scheduler.timeout = Scheduler.default = (function () {
15801570

15811571
function scheduleNow(state, action) {
15821572
var scheduler = this,

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: 4 additions & 4 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: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,15 +1167,9 @@
11671167
*/
11681168
Scheduler.prototype.schedulePeriodicWithState = function(state, period, action) {
11691169
if (typeof root.setInterval === 'undefined') { throw new NotSupportedError(); }
1170-
var s = state;
1171-
1172-
var id = root.setInterval(function () {
1173-
s = action(s);
1174-
}, period);
1175-
1176-
return disposableCreate(function () {
1177-
root.clearInterval(id);
1178-
});
1170+
period = normalizeTime(period);
1171+
var s = state, id = root.setInterval(function () { s = action(s); }, period);
1172+
return disposableCreate(function () { root.clearInterval(id); });
11791173
};
11801174

11811175
}(Scheduler.prototype));
@@ -1256,11 +1250,7 @@
12561250
}
12571251

12581252
var currentScheduler = new Scheduler(defaultNow, scheduleNow, notSupported, notSupported);
1259-
12601253
currentScheduler.scheduleRequired = function () { return !queue; };
1261-
currentScheduler.ensureTrampoline = function (action) {
1262-
if (!queue) { this.schedule(action); } else { action(); }
1263-
};
12641254

12651255
return currentScheduler;
12661256
}());
@@ -1385,7 +1375,7 @@
13851375
/**
13861376
* Gets a scheduler that schedules work via a timed callback based upon platform.
13871377
*/
1388-
var timeoutScheduler = Scheduler.timeout = (function () {
1378+
var timeoutScheduler = Scheduler.timeout = Scheduler.default = (function () {
13891379

13901380
function scheduleNow(state, action) {
13911381
var scheduler = this,

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

dist/rx.compat.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,15 +1358,9 @@
13581358
*/
13591359
Scheduler.prototype.schedulePeriodicWithState = function(state, period, action) {
13601360
if (typeof root.setInterval === 'undefined') { throw new NotSupportedError(); }
1361-
var s = state;
1362-
1363-
var id = root.setInterval(function () {
1364-
s = action(s);
1365-
}, period);
1366-
1367-
return disposableCreate(function () {
1368-
root.clearInterval(id);
1369-
});
1361+
period = normalizeTime(period);
1362+
var s = state, id = root.setInterval(function () { s = action(s); }, period);
1363+
return disposableCreate(function () { root.clearInterval(id); });
13701364
};
13711365

13721366
}(Scheduler.prototype));
@@ -1447,11 +1441,7 @@
14471441
}
14481442

14491443
var currentScheduler = new Scheduler(defaultNow, scheduleNow, notSupported, notSupported);
1450-
14511444
currentScheduler.scheduleRequired = function () { return !queue; };
1452-
currentScheduler.ensureTrampoline = function (action) {
1453-
if (!queue) { this.schedule(action); } else { action(); }
1454-
};
14551445

14561446
return currentScheduler;
14571447
}());
@@ -1576,7 +1566,7 @@
15761566
/**
15771567
* Gets a scheduler that schedules work via a timed callback based upon platform.
15781568
*/
1579-
var timeoutScheduler = Scheduler.timeout = (function () {
1569+
var timeoutScheduler = Scheduler.timeout = Scheduler.default = (function () {
15801570

15811571
function scheduleNow(state, action) {
15821572
var scheduler = this,

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

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,15 +1167,9 @@
11671167
*/
11681168
Scheduler.prototype.schedulePeriodicWithState = function(state, period, action) {
11691169
if (typeof root.setInterval === 'undefined') { throw new NotSupportedError(); }
1170-
var s = state;
1171-
1172-
var id = root.setInterval(function () {
1173-
s = action(s);
1174-
}, period);
1175-
1176-
return disposableCreate(function () {
1177-
root.clearInterval(id);
1178-
});
1170+
period = normalizeTime(period);
1171+
var s = state, id = root.setInterval(function () { s = action(s); }, period);
1172+
return disposableCreate(function () { root.clearInterval(id); });
11791173
};
11801174

11811175
}(Scheduler.prototype));
@@ -1256,11 +1250,7 @@
12561250
}
12571251

12581252
var currentScheduler = new Scheduler(defaultNow, scheduleNow, notSupported, notSupported);
1259-
12601253
currentScheduler.scheduleRequired = function () { return !queue; };
1261-
currentScheduler.ensureTrampoline = function (action) {
1262-
if (!queue) { this.schedule(action); } else { action(); }
1263-
};
12641254

12651255
return currentScheduler;
12661256
}());
@@ -1385,7 +1375,7 @@
13851375
/**
13861376
* Gets a scheduler that schedules work via a timed callback based upon platform.
13871377
*/
1388-
var timeoutScheduler = Scheduler.timeout = (function () {
1378+
var timeoutScheduler = Scheduler.timeout = Scheduler.default = (function () {
13891379

13901380
function scheduleNow(state, action) {
13911381
var scheduler = this,

0 commit comments

Comments
 (0)