Ticket #2528706 (closed defect)
ReporterKaven Yan |
Opened: 03/21/10 Last modified: 09/7/10 Status: closed Type: defect Resolution: fixed |
Owner Adam Moore |
Target Release: 3.2.0 Priority: P5 (trivial) |
|---|---|---|---|
| Summary: | Universal Console is disable if not use event-custom-base module | ||
| Description: | Please see http://dancewithnet.com/lab/yui/bug/3.1.0pr1/console/universal-console.html 1.Create a universal console and use it in 3 YUI instance. eg:
2.Run it, you can't get info of YUI instance 3 in the console. 3.Because YUI instance 3 doesn't use event-custom-base module, so Y.fire is undefined. 4.In order to use a universal console, I must use event-custom-base module. It's inconvenient. |
||
| Type: | defect | Observed in Version: | 3.0.0 |
| Component: | YUI Global Object | Severity: | S5 (trivial) |
| Assigned To: | Adam Moore | Target Release: | 3.2.0 |
| Location: | Library Code | Priority: | P5 (trivial) |
| Tags: | console event-custom-base | Relates To: | |
| Browsers: | N/A | ||
| URL: | http://dancewithnet.com/lab/yui/bug/3.1.0pr1/console/universal-console.html | ||
| Test Information: | |||
Change History
|
Posted: 03/22/10
|
|
Posted: 03/23/10
Yes, in my real world, |
|
Posted: 04/19/10
Adam, Can you take this? Do you think it would be reasonable to test in yui-log for YUI.Env.globalEvents and fire from there if Y.fire is not present? |
|
Posted: 04/20/10
Yes, this is a a simple change that seems worth it. YUI 3.1.0 supports a logFn configuration parameter. The OP could define this in the global YUI_config object to work around the issue. |
|
Posted: 07/19/10
|
|
Posted: 07/20/10
log will fire the global log event if the instance doesn't have the |
|
Posted: 09/7/10
|
Luke Smith
Just about everything in the library requires event-custom-base. Can you give a real world use case where this is inconvenient?