Skip to content

Commit

Permalink
DOMの「変更時」を追加 #1754
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed Oct 8, 2024
1 parent b1e1fc1 commit 9b68274
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/plugin_browser_dom_event.mts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ export default {
},
return_none: true
},
'変更時': { // @無名関数FでDOMを変更した時に実行するイベントを設定 // @へんこうしたとき
type: 'func',
josi: [['で'], ['を', 'の']],
pure: true,
fn: function (func: any, dom: any, sys: any) {
sys.__addEvent(dom, 'click', func, null)
},
return_none: true
},
'読込時': { // @無名関数FでDOMを読み込んだ時に実行するイベントを設定 // @よみこんだとき
type: 'func',
josi: [['で'], ['を', 'の']],
Expand Down

0 comments on commit 9b68274

Please # to comment.