From 624d8a418e239fab0c5f0633568b77bc7bd7fdef Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 5 Apr 2025 14:59:04 +0200 Subject: [PATCH] Remove "unnecessary" inline function names in the `src/display/canvas.js` file This is ever so slightly shorter, which cannot hurt. --- src/display/canvas.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/display/canvas.js b/src/display/canvas.js index 8fc6e8d7d..64e683d08 100644 --- a/src/display/canvas.js +++ b/src/display/canvas.js @@ -125,47 +125,47 @@ function mirrorContextOperations(ctx, destCtx) { delete ctx._removeMirroring; }; - ctx.save = function ctxSave() { + ctx.save = function () { destCtx.save(); this.__originalSave(); }; - ctx.restore = function ctxRestore() { + ctx.restore = function () { destCtx.restore(); this.__originalRestore(); }; - ctx.translate = function ctxTranslate(x, y) { + ctx.translate = function (x, y) { destCtx.translate(x, y); this.__originalTranslate(x, y); }; - ctx.scale = function ctxScale(x, y) { + ctx.scale = function (x, y) { destCtx.scale(x, y); this.__originalScale(x, y); }; - ctx.transform = function ctxTransform(a, b, c, d, e, f) { + ctx.transform = function (a, b, c, d, e, f) { destCtx.transform(a, b, c, d, e, f); this.__originalTransform(a, b, c, d, e, f); }; - ctx.setTransform = function ctxSetTransform(a, b, c, d, e, f) { + ctx.setTransform = function (a, b, c, d, e, f) { destCtx.setTransform(a, b, c, d, e, f); this.__originalSetTransform(a, b, c, d, e, f); }; - ctx.resetTransform = function ctxResetTransform() { + ctx.resetTransform = function () { destCtx.resetTransform(); this.__originalResetTransform(); }; - ctx.rotate = function ctxRotate(angle) { + ctx.rotate = function (angle) { destCtx.rotate(angle); this.__originalRotate(angle); }; - ctx.clip = function ctxRotate(rule) { + ctx.clip = function (rule) { destCtx.clip(rule); this.__originalClip(rule); };