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

Commit e73e312

Browse files
Closing scopes
1 parent 1ad1e89 commit e73e312

28 files changed

Lines changed: 119 additions & 79 deletions

dist/rx.all.compat.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,14 @@
12711271
}
12721272
}
12731273

1274+
function invokeRecDateRelative(s, p) {
1275+
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
1276+
}
1277+
1278+
function invokeRecDateAbsolute(s, p) {
1279+
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
1280+
}
1281+
12741282
function scheduleInnerRecursive(action, self) {
12751283
action(function(dt) { self(action, dt); });
12761284
}
@@ -1312,9 +1320,7 @@
13121320
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
13131321
*/
13141322
schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) {
1315-
return this._scheduleRelative([state, action], dueTime, function (s, p) {
1316-
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
1317-
});
1323+
return this._scheduleRelative([state, action], dueTime, invokeRecDateRelative);
13181324
};
13191325

13201326
/**
@@ -1335,9 +1341,7 @@
13351341
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
13361342
*/
13371343
schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) {
1338-
return this._scheduleAbsolute([state, action], dueTime, function (s, p) {
1339-
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
1340-
});
1344+
return this._scheduleAbsolute([state, action], dueTime, invokeRecDateAbsolute);
13411345
};
13421346
}(Scheduler.prototype));
13431347

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,14 @@
10801080
}
10811081
}
10821082

1083+
function invokeRecDateRelative(s, p) {
1084+
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
1085+
}
1086+
1087+
function invokeRecDateAbsolute(s, p) {
1088+
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
1089+
}
1090+
10831091
function scheduleInnerRecursive(action, self) {
10841092
action(function(dt) { self(action, dt); });
10851093
}
@@ -1121,9 +1129,7 @@
11211129
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
11221130
*/
11231131
schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) {
1124-
return this._scheduleRelative([state, action], dueTime, function (s, p) {
1125-
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
1126-
});
1132+
return this._scheduleRelative([state, action], dueTime, invokeRecDateRelative);
11271133
};
11281134

11291135
/**
@@ -1144,9 +1150,7 @@
11441150
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
11451151
*/
11461152
schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) {
1147-
return this._scheduleAbsolute([state, action], dueTime, function (s, p) {
1148-
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
1149-
});
1153+
return this._scheduleAbsolute([state, action], dueTime, invokeRecDateAbsolute);
11501154
};
11511155
}(Scheduler.prototype));
11521156

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,14 @@
11851185
}
11861186
}
11871187

1188+
function invokeRecDateRelative(s, p) {
1189+
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
1190+
}
1191+
1192+
function invokeRecDateAbsolute(s, p) {
1193+
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
1194+
}
1195+
11881196
function scheduleInnerRecursive(action, self) {
11891197
action(function(dt) { self(action, dt); });
11901198
}
@@ -1226,9 +1234,7 @@
12261234
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
12271235
*/
12281236
schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) {
1229-
return this._scheduleRelative([state, action], dueTime, function (s, p) {
1230-
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
1231-
});
1237+
return this._scheduleRelative([state, action], dueTime, invokeRecDateRelative);
12321238
};
12331239

12341240
/**
@@ -1249,9 +1255,7 @@
12491255
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
12501256
*/
12511257
schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) {
1252-
return this._scheduleAbsolute([state, action], dueTime, function (s, p) {
1253-
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
1254-
});
1258+
return this._scheduleAbsolute([state, action], dueTime, invokeRecDateAbsolute);
12551259
};
12561260
}(Scheduler.prototype));
12571261

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

dist/rx.core.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,14 @@ var
559559
}
560560
}
561561

562+
function invokeRecDateRelative(s, p) {
563+
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
564+
}
565+
566+
function invokeRecDateAbsolute(s, p) {
567+
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
568+
}
569+
562570
function scheduleInnerRecursive(action, self) {
563571
action(function(dt) { self(action, dt); });
564572
}
@@ -600,9 +608,7 @@ var
600608
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
601609
*/
602610
schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) {
603-
return this._scheduleRelative([state, action], dueTime, function (s, p) {
604-
return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
605-
});
611+
return this._scheduleRelative([state, action], dueTime, invokeRecDateRelative);
606612
};
607613

608614
/**
@@ -623,9 +629,7 @@ var
623629
* @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).
624630
*/
625631
schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) {
626-
return this._scheduleAbsolute([state, action], dueTime, function (s, p) {
627-
return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
628-
});
632+
return this._scheduleAbsolute([state, action], dueTime, invokeRecDateAbsolute);
629633
};
630634
}(Scheduler.prototype));
631635

0 commit comments

Comments
 (0)