render-core 1.2.26 → 1.2.27

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.
@@ -1,7 +1,7 @@
1
1
  export function inputUtility(element, space) {
2
2
  switch (element.getAttribute("type")) {
3
3
  case "text":
4
- Reflect.set(this, "origin", {
4
+ Reflect.set(space, "origin", {
5
5
  tag: element.tagName,
6
6
  type: element.getAttribute("type"),
7
7
  id: element.getAttribute("id"),
@@ -12,7 +12,7 @@ export function inputUtility(element, space) {
12
12
  }
13
13
  }
14
14
  export function selectUtility(element, space) {
15
- Reflect.set(this, "origin", {
15
+ Reflect.set(space, "origin", {
16
16
  tag: element.tagName,
17
17
  // @ts-ignore
18
18
  selected: element.selected,
@@ -20,7 +20,7 @@ export function selectUtility(element, space) {
20
20
  });
21
21
  }
22
22
  export function textareaUtiltiy(element, space) {
23
- Reflect.set(this, "origin", {
23
+ Reflect.set(space, "origin", {
24
24
  tag: element.tagName,
25
25
  id: element.getAttribute("id"),
26
26
  name: element.getAttribute("name"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "The core of render-js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",