jsquery_node 1.0.8 → 1.0.10

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.
package/jsquery.js CHANGED
@@ -198,8 +198,8 @@ export const { $, JSQuery } = (() => {
198
198
  }
199
199
  value(val) {
200
200
  if (val == undefined)
201
- return this.getProp("value");
202
- this.props({ value: val });
201
+ return this.elt.value;
202
+ this.elt.value = val;
203
203
  return this;
204
204
  }
205
205
  checked(val) {
package/jsquery.ts CHANGED
@@ -204,8 +204,8 @@ export const { $, JSQuery } = (() => {
204
204
  value(): string;
205
205
  value(val: string): this;
206
206
  value(val?: string): string | this {
207
- if (val == undefined) return this.getProp("value");
208
- this.props({value: val});
207
+ if (val == undefined) return (this.elt as any).value;
208
+ (this.elt as any).value = val;
209
209
  return this;
210
210
  }
211
211
  checked(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsquery_node",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "jsquery",
5
5
  "homepage": "https://github.com/chickencuber/jsquery_node#readme",
6
6
  "bugs": {