Skip to content

Commit a04b0d8

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 a012423 commit a04b0d8

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
@@ -103,7 +103,7 @@ const registry = {
103103
const transform = pattern.transform || pattern.prototype?.transform;
104104
if (transform) {
105105
try {
106-
transform($(content));
106+
transform.bind(pattern.prototype)($(content));
107107
} catch (e) {
108108
if (dont_catch) {
109109
throw e;

0 commit comments

Comments
 (0)