From d3e76a1c2d2f11aa4f14bbdb89608275476de286 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 23 Aug 2018 22:51:35 +0300 Subject: [PATCH] Typo --- client/src/builtin/BuiltinModule.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/builtin/BuiltinModule.js b/client/src/builtin/BuiltinModule.js index 1e00c1a4..c55c1f36 100644 --- a/client/src/builtin/BuiltinModule.js +++ b/client/src/builtin/BuiltinModule.js @@ -69,13 +69,13 @@ export default class BuiltinModule { /** * Patch a function in a module * @param {any} module Module to patch - * @param {String} fndName Name of the function patch + * @param {String} fnName Name of the function to patch * @param {Function} cb Callback * @param {String} [when=after] before|after|instead */ - patch(module, fndName, cb, when = 'after') { + patch(module, fnName, cb, when = 'after') { if (!['before', 'after', 'instead'].includes(when)) when = 'after'; - Patch(`BD:${this.moduleName}`, module)[when](fndName, cb.bind(this)); + Patch(`BD:${this.moduleName}`, module)[when](fnName, cb.bind(this)); } /**