| 22723 | } |
| 22724 | // eslint-disable-next-line deprecation/deprecation |
| 22725 | function _makeSafe(obj, prototype, methodName) { |
| 22726 | /* eslint-disable @typescript-eslint/no-explicit-any */ var classMethod = obj[methodName]; |
| 22727 | var prototypeMethod = prototype[methodName]; |
| 22728 | if (classMethod || prototypeMethod) obj[methodName] = function() { |
| 22729 | var args = []; |
| 22730 | for(var _i = 0; _i < arguments.length; _i++)args[_i] = arguments[_i]; |
| 22731 | /* eslint-enable @typescript-eslint/no-explicit-any */ var retVal; |
| 22732 | if (prototypeMethod) retVal = prototypeMethod.apply(this, args); |
| 22733 | if (classMethod !== prototypeMethod) retVal = classMethod.apply(this, args); |
| 22734 | return retVal; |
| 22735 | }; |
| 22736 | } |
| 22737 | function nullRender() { |
| 22738 | return null; |
| 22739 | } |