20 lines
886 B
JavaScript
20 lines
886 B
JavaScript
|
import { __read, __spreadArray } from "tslib";
|
||
|
export var timeoutProvider = {
|
||
|
setTimeout: function (handler, timeout) {
|
||
|
var args = [];
|
||
|
for (var _i = 2; _i < arguments.length; _i++) {
|
||
|
args[_i - 2] = arguments[_i];
|
||
|
}
|
||
|
var delegate = timeoutProvider.delegate;
|
||
|
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
||
|
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
||
|
}
|
||
|
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
||
|
},
|
||
|
clearTimeout: function (handle) {
|
||
|
var delegate = timeoutProvider.delegate;
|
||
|
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
||
|
},
|
||
|
delegate: undefined,
|
||
|
};
|
||
|
//# sourceMappingURL=timeoutProvider.js.map
|