Whenever I was using custom events there were:

something.on("changed", function myonchange() {
    do_something_here
});

However, now I start to use better way:

something.changed(function myonchange() {
    do_something_here
});

The benefits of this change are:

  • The list of events can be seen in the debugger.
  • Events can be copied from one object to another.
  • Several events can be aggregated into one.

Comments

You can leave a response, or trackback from your own site.

Before you add comment see for rules.

Leave a Reply

Your email address will not be published. Required fields are marked *

3v2k8p