@xaendar/compiler 0.7.12 → 0.7.13

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.
@@ -592,8 +592,8 @@ function mapEvents(events, compilerContext) {
592
592
  }
593
593
  function getPrecode(tagName) {
594
594
  switch (tagName) {
595
- case "svg": return "context.createElement = (tagName) => document.createElementNS(SVG_NS, tagName).bind(document);";
596
- case "math": return "context.createElement = (tagName) => document.createElementNS(MATHML_NS, tagName).bind(document);";
595
+ case "svg": return "context.createElement = (tagName) => document.createElementNS.bind(document)(SVG_NS, tagName);";
596
+ case "math": return "context.createElement = (tagName) => document.createElementNS.bind(document)(MATHML_NS, tagName);";
597
597
  default: return "";
598
598
  }
599
599
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/compiler",
3
- "version": "0.7.12",
3
+ "version": "0.7.13",
4
4
  "description": "A library for transpiling Xaendar Templates into JavaScript code",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -16,8 +16,8 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@xaendar/common": "0.7.12",
20
- "@xaendar/types": "0.7.12",
19
+ "@xaendar/common": "0.7.13",
20
+ "@xaendar/types": "0.7.13",
21
21
  "typescript": "^6.0.3"
22
22
  }
23
23
  }