urbit / shrub

An operating function (Prototype)
https://urbit.org
MIT License
29 stars 2 forks source link

use mast to save all sky state transitions #116

Closed will-hanlen closed 1 month ago

will-hanlen commented 1 month ago

change to mast-js.js

registers event listeners with the javascript addEventListener method, instead of overwriting a property directly.

this allows triggering with non-standard JS events from webcomponents.

example:

    ;s-k-y
      =our  (scow %p our.bowl)
      =event  "/mast-save/any"
      =return  "/target/outerHTML"
      =default-strategies  default-strategies-json
      ;+  form-theme
      ;+  notifications
    ==