- Step 1:
- An event was attached to the the link using the $E.add method.Goto step two
- Step 2:
- Event was removed from step1 using "$E.remove". Event was added below that passes the string "hello world" through to the callback function.
Goto step three
- Step 3:
- A second event was attached to the anchor in step two. This one changes the callback scope to 'this is my scope'. Click it to see.
- Step 4:
- Both events were removed from step 2 using 'removeEvents' and passing the anchor tag as a parameter. Depending on the order in which the events fired, a new 'this is my scope' event may be attached to step 2 (I mostly only see this in IE). This is not a bug, just a sloppy test case. This is the final step so far.