Bladeren bron

Slightly changed `ConsoleOutputDisableExpressionTemplate`

sanex3339 4 jaren geleden
bovenliggende
commit
3d232dda17

File diff suppressed because it is too large
+ 0 - 0
dist/index.browser.js


File diff suppressed because it is too large
+ 0 - 0
dist/index.cli.js


File diff suppressed because it is too large
+ 0 - 0
dist/index.js


+ 3 - 3
src/custom-code-helpers/console-output/templates/ConsoleOutputDisableExpressionTemplate.ts

@@ -9,9 +9,9 @@ export function ConsoleOutputDisableExpressionTemplate (): string {
             const _console = (that.console = that.console || {});
             const methods = ['log', 'warn', 'info', 'error', 'exception', 'table', 'trace'];
             
-            for (var i = 0; i < methods.length; i++){
-                const func = {consoleLogDisableFunctionName}.constructor();
-                const methodName = methods[i];
+            for (let index = 0; index < methods.length; index++){
+                const func = {callControllerFunctionName}.constructor();
+                const methodName = methods[index];
                 const originalFunction = _console[methodName] || func;
 
                 func.toString = originalFunction.toString.bind(originalFunction);

Some files were not shown because too many files changed in this diff