Attached you can find the second draft of the NotificationCenter? class
discussed a few days ago on this list. This is a slightly modified version of the
code posted to the list a few days ago; now asynchronous notification are managed.
Besides NotificationCenter?.js, in the zip archive there are a few
additional scripts (Base.js and Set.js witch impement some convenience
method I have used while implementing the NotificationCenter?) and a test written using the old MochiKit test
suite.
In order to test this stuff you will need to fill all the blanks:
providing MochiKit and eventually JSLog libraries, fix the relative
path inside the files, etc..., but this should not be a cumbersome
task.
Base, Set and NotificationCenter? are in the Clipperz package, as this
is the project that I am working on, but I have no problem in moving
it into a more general purpose package if somebody find it useful.
Any feedback is welcome.