Possible Duplicate:
Difference between e.target and e.currentTarget
I don’t really understand the difference between these two
event.target and
event.CurrentTarget and explanation.
Can somebody explain this to me on a simple example?
Suppose you create a
TextInputobject.Clicking on the TextInput gives the trace of:
This means:
event.targetis the object from which the event originated. i.e. in this case, a TextField was clicked on, so the event originated from theTextField.event.currentTargetis the object which called the listener. In this case, theTextInputcalled the listener, so thecurrentTargetisTextInput