Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgoringe committed Nov 5, 2024
1 parent de84e83 commit 08d688f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/use_everywhere.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ app.registerExtension({
},

async nodeCreated(node) {
if (!node._mode) {
node._mode = node.mode
if (!node.__mode) {
node.__mode = node.mode
Object.defineProperty(node, "mode", {
get: ( )=>{return node._mode},
set: (v)=>{node._mode = v; node.afterChangeMade?.('mode', v);}
})
}
if (!node._bgcolor) {
node._bgcolor = node._bgcolor
if (!node.__bgcolor) {
node.__bgcolor = node._bgcolor
Object.defineProperty(node,"bgcolor", {
get: ( )=>{return node._bgcolor},
set: (v)=>{node._bgcolor = v; node.afterChangeMade?.('bgcolor', v);}
Expand Down

0 comments on commit 08d688f

Please sign in to comment.