UNPKG

xmlplus

Version:

A JavaScript framwork for developing projects efficiently.

15 lines 477 B
xmlplus("xp", function (xp, $_) { $_().imports({ Index: { xml: "<div id='index'>\ <span id='foo'>foo</span>\ </div>", fun: function (sys, items, opts) { sys.foo.watch("msg", function(e) { console.log(e.currentTarget == this, this == sys.foo); // true true }); sys.index.notify("msg"); } } }); });