Ticket #2529150 (closed defect)
Reporter Nate Cavanaugh |
Opened: 08/2/10 Last modified: 09/7/10 Status: closed Type: defect Resolution: fixed |
Owner Satyen Desai |
Target Release: 3.2.0 Priority: P3 (normal) |
|---|---|---|---|
| Summary: | Gesture events ignore listener context passed as the last parameter | ||
| Description: | When you add a listener using the gesture* events, the context is ignored when passed as the last parameter. Instead "this" always points to the node to which the event is bound. All other types of event subscription allow something like: However in this case: The execution context will always point to Y. |
||
| Type: | defect | Observed in Version: | development master |
| Component: | Event | Severity: | S3 (normal) |
| Assigned To: | Satyen Desai | Target Release: | 3.2.0 |
| Location: | API Documentation | Priority: | P3 (normal) |
| Tags: | Relates To: | ||
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | |||
Change History
|
Posted: 08/2/10
|
|
Posted: 08/2/10
|
|
Posted: 08/6/10
Added API docs for context, additional args. Fixes #2529150 |
|
Posted: 08/6/10
Added API docs for context, additional args. Fixes #2529150 |
|
Posted: 09/7/10
|
The gesture synthetic events support a configuration object as the 3rd parameter.
If no custom configuration is required, a null needs to be passed in, to maintain subsequent arguments (context etc.). However, my general recommendation is to use Y.bind.
I can clean up the docs to be explicit about this. Marking the ticket API documentation accordingly.
Let me know if you disagree.