@mulanjs/mulanjs 1.0.1-dev.20260226191318 → 1.0.1-dev.20260226191839
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -189,7 +189,7 @@ function generateDOMInstruction(node, chunks, getUid, uidRef, bindings, localSco
|
|
|
189
189
|
chunks.push(`this._bindEffect(() => { ${id}['${b.name}'] = ${b.expr}; }, ${id});`);
|
|
190
190
|
}
|
|
191
191
|
else if (b.type === 'event') {
|
|
192
|
-
chunks.push(`${id}.addEventListener('${b.name}', ${b.expr}.bind(this));`);
|
|
192
|
+
chunks.push(`${id}.addEventListener('${b.name}', (${b.expr}).bind(this));`);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
package/package.json
CHANGED
|
@@ -259,7 +259,7 @@ function generateDOMInstruction(node: Node, chunks: string[], getUid: () => stri
|
|
|
259
259
|
if (b.type === 'prop') {
|
|
260
260
|
chunks.push(`this._bindEffect(() => { ${id}['${b.name}'] = ${b.expr}; }, ${id});`);
|
|
261
261
|
} else if (b.type === 'event') {
|
|
262
|
-
chunks.push(`${id}.addEventListener('${b.name}', ${b.expr}.bind(this));`);
|
|
262
|
+
chunks.push(`${id}.addEventListener('${b.name}', (${b.expr}).bind(this));`);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
}
|