Skip to content

Commit 029d1bd

Browse files
committed
DRAFT feat(core registry): Bind transform, so that static methods can access this. TODO: probably bonkers. that was due to a fix in fix-focus branch.
1 parent 3d05847 commit 029d1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const registry = {
9494
const transform = pattern.transform || pattern.prototype?.transform;
9595
if (transform) {
9696
try {
97-
transform($(content));
97+
transform.bind(pattern.prototype)($(content));
9898
} catch (e) {
9999
if (dont_catch) {
100100
throw e;

0 commit comments

Comments
 (0)