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

Commit f0cb35d

Browse files
Updating with TS
1 parent de3d945 commit f0cb35d

99 files changed

Lines changed: 414 additions & 414 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dist/rx.aggregates.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@
5454
ArgumentOutOfRangeError = Rx.ArgumentOutOfRangeError;
5555

5656
var errorObj = {e: {}};
57-
var tryCatchTarget;
58-
function tryCatcher() {
59-
try {
60-
return tryCatchTarget.apply(this, arguments);
61-
} catch (e) {
62-
errorObj.e = e;
63-
return errorObj;
57+
function tryCatcherGen(tryCatchTarget) {
58+
return function tryCatcher() {
59+
try {
60+
return tryCatchTarget.apply(this, arguments);
61+
} catch (e) {
62+
errorObj.e = e;
63+
return errorObj;
64+
}
6465
}
6566
}
66-
function tryCatch(fn) {
67+
var tryCatch = Rx.internals.tryCatch = function tryCatch(fn) {
6768
if (!isFunction(fn)) { throw new TypeError('fn must be a function'); }
68-
tryCatchTarget = fn;
69-
return tryCatcher;
69+
return tryCatcherGen(fn);
7070
}
7171
function thrower(e) {
7272
throw e;

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@
5555
}
5656

5757
var errorObj = {e: {}};
58-
var tryCatchTarget;
59-
function tryCatcher() {
60-
try {
61-
return tryCatchTarget.apply(this, arguments);
62-
} catch (e) {
63-
errorObj.e = e;
64-
return errorObj;
58+
function tryCatcherGen(tryCatchTarget) {
59+
return function tryCatcher() {
60+
try {
61+
return tryCatchTarget.apply(this, arguments);
62+
} catch (e) {
63+
errorObj.e = e;
64+
return errorObj;
65+
}
6566
}
6667
}
67-
function tryCatch(fn) {
68+
var tryCatch = Rx.internals.tryCatch = function tryCatch(fn) {
6869
if (!isFunction(fn)) { throw new TypeError('fn must be a function'); }
69-
tryCatchTarget = fn;
70-
return tryCatcher;
70+
return tryCatcherGen(fn);
7171
}
7272
function thrower(e) {
7373
throw e;

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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@
5353
function cloneArray(arr) { for(var a = [], i = 0, len = arr.length; i < len; i++) { a.push(arr[i]); } return a;}
5454

5555
var errorObj = {e: {}};
56-
var tryCatchTarget;
57-
function tryCatcher() {
58-
try {
59-
return tryCatchTarget.apply(this, arguments);
60-
} catch (e) {
61-
errorObj.e = e;
62-
return errorObj;
56+
function tryCatcherGen(tryCatchTarget) {
57+
return function tryCatcher() {
58+
try {
59+
return tryCatchTarget.apply(this, arguments);
60+
} catch (e) {
61+
errorObj.e = e;
62+
return errorObj;
63+
}
6364
}
6465
}
65-
function tryCatch(fn) {
66+
var tryCatch = Rx.internals.tryCatch = function tryCatch(fn) {
6667
if (!isFunction(fn)) { throw new TypeError('fn must be a function'); }
67-
tryCatchTarget = fn;
68-
return tryCatcher;
68+
return tryCatcherGen(fn);
6969
}
7070
function thrower(e) {
7171
throw e;

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

dist/rx.async.compat.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@
4545
isFunction = Rx.helpers.isFunction;
4646

4747
var errorObj = {e: {}};
48-
var tryCatchTarget;
49-
function tryCatcher() {
50-
try {
51-
return tryCatchTarget.apply(this, arguments);
52-
} catch (e) {
53-
errorObj.e = e;
54-
return errorObj;
48+
function tryCatcherGen(tryCatchTarget) {
49+
return function tryCatcher() {
50+
try {
51+
return tryCatchTarget.apply(this, arguments);
52+
} catch (e) {
53+
errorObj.e = e;
54+
return errorObj;
55+
}
5556
}
5657
}
57-
function tryCatch(fn) {
58+
var tryCatch = Rx.internals.tryCatch = function tryCatch(fn) {
5859
if (!isFunction(fn)) { throw new TypeError('fn must be a function'); }
59-
tryCatchTarget = fn;
60-
return tryCatcher;
60+
return tryCatcherGen(fn);
6161
}
6262
function thrower(e) {
6363
throw e;

0 commit comments

Comments
 (0)