aboutsummaryrefslogtreecommitdiff
path: root/src/modules/image
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/image')
-rw-r--r--src/modules/image/index.ts1
-rw-r--r--src/modules/image/providers/placeholder.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts
index cf59627d..6a2d6144 100644
--- a/src/modules/image/index.ts
+++ b/src/modules/image/index.ts
@@ -30,6 +30,7 @@ export class ImageModule {
if (name === 'constructor' || typeof this[name] !== 'function') {
continue;
}
+
this[name] = this[name].bind(this);
}
diff --git a/src/modules/image/providers/placeholder.ts b/src/modules/image/providers/placeholder.ts
index d2cc9f51..9691a9ff 100644
--- a/src/modules/image/providers/placeholder.ts
+++ b/src/modules/image/providers/placeholder.ts
@@ -13,6 +13,7 @@ export class Placeholder {
if (name === 'constructor' || typeof this[name] !== 'function') {
continue;
}
+
this[name] = this[name].bind(this);
}
}