UNPKG

xmlplus

Version:

A JavaScript framwork for developing projects efficiently.

15 lines 488 B
xmlplus("xp", function (xp, $_) { $_().imports({ Index: { xml: "<div id='index'>\ <button>click</button>\ </div>", fun: function (sys, items, opts) { sys.index.on("click", function(e) { console.log(e.currentTarget == sys.index); // true console.log(e.currentTarget == this); // true }); } } }); });