mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
convert to estraverse and minor cleanup
This commit is contained in:
parent
bc9a16720e
commit
29bbda0700
8 changed files with 66 additions and 126 deletions
|
@ -16,8 +16,11 @@ jsProperties.forEach((prop) => {
|
|||
const propDescriptor = Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype, prop);
|
||||
|
||||
Object.defineProperty(CSSStyleDeclaration.prototype, prop, {
|
||||
get() {
|
||||
return propDescriptor.get.call(this);
|
||||
},
|
||||
set(v) {
|
||||
propDescriptor.set.call(this, rewriteCss(v));
|
||||
return propDescriptor.set.call(this, rewriteCss(v));
|
||||
},
|
||||
})
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue