Ticket #2529197 (closed defect)

Reporter


Eric Ferraiuolo
Opened: 08/12/10
Last modified: 09/7/10
Status: closed
Type: defect
Resolution: fixed

Owner


Adam Moore
Target Release: 3.2.0
Priority: P3 (normal)
Summary: Error when subscribing to EventTarget.once(['type1', 'type2'], ...)
Description:

I assumed since .once() delegates calls off to on.() that passing an Array of event types to subscribe [once] to would work, but I'm getting an error:

TypeError: Result of expression 'handle.sub' [undefined] is not an object. event-custom.js:1252

I'm on yui3-2512

Type: defect Observed in Version: development master
Component: Event Severity: S3 (normal)
Assigned To: Adam Moore Target Release: 3.2.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To: #2529196
Browsers: N/A
URL: http://github.com/ericf/yui3/blob/32e72061e75e56037833938a76114d7febddd621/sandbox/event/once-array-type-test.html
Test Information:

I created a test page, but in sandbox/event on my yui3 branch on GitHub

Change History

Adam Moore

YUI Contributor

Posted: 08/12/10
  • location changed to Library Code
  • milestone changed to 3.2.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Adam Moore

YUI Contributor

Posted: 08/12/10
  • resolution changed to fixed
  • status changed from accepted to checkedin

once() supports object/array for type [fixes #2529197].
View Commit:

Adam Moore

YUI Contributor

Posted: 08/24/10

once() supports object/array for type [fixes #2529197].
View Commit:

George

YUI Developer

Posted: 09/7/10
  • status changed from checkedin to closed