onejs-core 0.3.28 → 0.3.29
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/dist/dom/dom-style.d.ts +1 -1
- package/dist/dom/dom-style.js +3 -3
- package/dom/dom-style.ts +3 -3
- package/package.json +1 -1
package/dist/dom/dom-style.d.ts
CHANGED
package/dist/dom/dom-style.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class DomStyleWrapper {
|
|
2
|
-
|
|
2
|
+
_domStyle; // Making this public so that Proxy's setProperty can access it
|
|
3
3
|
constructor(domStyle) {
|
|
4
|
-
this
|
|
4
|
+
this._domStyle = domStyle;
|
|
5
5
|
return new Proxy(this, {
|
|
6
6
|
set(target, prop, value) {
|
|
7
7
|
target.setProperty(prop, value);
|
|
@@ -13,6 +13,6 @@ export class DomStyleWrapper {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
setProperty(name, value) {
|
|
16
|
-
this
|
|
16
|
+
this._domStyle.setProperty(name, value);
|
|
17
17
|
}
|
|
18
18
|
}
|
package/dom/dom-style.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
export class DomStyleWrapper implements CS.OneJS.Dom.DomStyle {
|
|
4
|
-
|
|
4
|
+
_domStyle: CS.OneJS.Dom.DomStyle // Making this public so that Proxy's setProperty can access it
|
|
5
5
|
|
|
6
6
|
constructor(domStyle: CS.OneJS.Dom.DomStyle) {
|
|
7
|
-
this
|
|
7
|
+
this._domStyle = domStyle
|
|
8
8
|
|
|
9
9
|
return new Proxy(this, {
|
|
10
10
|
set(target, prop, value) {
|
|
@@ -18,7 +18,7 @@ export class DomStyleWrapper implements CS.OneJS.Dom.DomStyle {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
setProperty(name: string, value: any) {
|
|
21
|
-
this
|
|
21
|
+
this._domStyle.setProperty(name, value)
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
package/package.json
CHANGED