YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2527823 (closed defect)

Reporter


Edwin Grubbs
Opened: 03/28/09
Last modified: 05/3/09
Status: closed
Type: defect
Resolution: fixed

Owner


Nicholas C. Zakas
Target Release: 3.0.0 Beta1
Priority: P3 (normal)
Summary: Y.Event.simulate() doesn't throw an error for invalid arguments.
Description:

The Y.Event.simulate() function looks in the Y.Event object by the event name, such as "click", to see if there is a function defined. If there is no function defined, it does nothing without
reporting an error. It really should have an else-clause that throws an error.

Y.Event.simulate = function(target, type, options){
if (isFunction(Y.Event[type])){
Y.Event[type](target, options);
}
};

Type: defect Observed in Version: 3.0.0 PR2
Component: Event Severity: S3 (normal)
Assigned To: Nicholas C. Zakas Target Release: 3.0.0 Beta1
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Adam Moore

YUI Developer

Posted: 03/30/09

Nicholas C. Zakas

YUI Developer

Posted: 04/25/09
  • browser changed to N/A
  • milestone changed to 3.0.0 Beta1
  • status changed from assigned to accepted

Nicholas C. Zakas

YUI Developer

Posted: 05/3/09
  • resolution changed to fixed
  • status changed from accepted to closed