UNPKG

xmlplus

Version:

A JavaScript framwork for developing projects efficiently.

14 lines 433 B
xmlplus("xp", function (xp, $_) { $_().imports({ Index: { xml: "<span id='index'>foo</span>", fun: function (sys, items, opts) { sys.index.watch("msg", function(e) { sys.index.unwatch("msg"); console.log(this.text()); }); sys.index.notify("msg").notify("msg"); } } }); });