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.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

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 *

2z1i6f