Ticket #2528239 (closed defect)
Reporter Luke Smith |
Opened: 09/10/09 Last modified: 09/29/09 Status: closed Type: defect Resolution: fixed |
Owner Adam Moore |
Target Release: 3.0.0 GA Priority: P3 (normal) |
|---|---|---|---|
| Summary: | The detach handle returned from Y.onAvailable doesn't stop the deferred code from executing | ||
| Description: | var handle = Y.Event.onAvailable('#notYetOnThePage', function () { handle.detach(); The alert will still occur when the element is added to the page. This call to onAvailable is used by event and at least mouseenter/mouseleave and typing-pause to defer the subscription of events to elements when Y.on is passed a selector string that finds no |
||
| Type: | defect | Observed in Version: | development master |
| Component: | Event | Severity: | S3 (normal) |
| Assigned To: | Adam Moore | Target Release: | 3.0.0 GA |
| Location: | Library Code | Priority: | P3 (normal) |
| Tags: | Relates To: | #2528236 | |
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | |||
Change History
|
Posted: 09/10/09
|
|
Posted: 09/16/09
|
|
Posted: 09/16/09
|
|
Posted: 09/16/09
all event listeners configured to return an event handle will always get a single object. Previously, requests that resulted in multiple listeners returned an array. onAvailable and lazy DOM listener detach handles now work as expected. [fixes #2528236]. [fixes #2528239]. |
|
Posted: 09/29/09
|
all event listeners configured to return an event handle will always get a single object. Previously, requests that resulted in multiple listeners returned an array. onAvailable and lazy DOM listener detach handles now work as expected. [fixes #2528236]. [fixes #2528239].
View Commit: bc8660dcb747bedc141ca9061de83f6f32f8018f