xmlplus
Version:
A JavaScript framwork for developing projects efficiently.
15 lines • 483 B
JavaScript
xmlplus("xp", function (xp, $_, t) {
$_().imports({
Example: {
xml: "<div id='example'>\
<span id='foo'>foo</span>\
</div>",
fun: function (sys, items, opts) {
sys.foo.watch("msg", function (e, a, b) {
console.log(a, b); // 37 hello,world
});
sys.example.notify("msg", [37, "hello,world"]);
}
}
});
});