Ticket #2529982 (closed defect)
ReporterMatteo |
Opened: 02/22/11 Last modified: 06/5/12 Status: closed Type: defect Resolution: duplicate Duplicate of: #2532268 |
Owner Dav Glass |
Target Release: Priority: P3 (normal) |
|---|---|---|---|
| Summary: | autocomplete error trying to load intl | ||
| Description: | Hi, first of all, thank you @yaypie for this wonderful widget!
Few more details:
- for every page we have a YUI3 module, say:
- We use a common YUI_config object shared across Y instances - for our modules we don't list the dependencies, because we handle them dynamically with the "groups" configuration, composing the path on the fly with some regexp - if we explicitely add (just trying), in the module requirements list above, the intl module along with autocomplete rollup, the autocomplete loads correctly but when selecting an element there's another error "s is undefined" from yui.js on line 1847:
Thank you for your time. |
||
| Type: | defect | Observed in Version: | 3.3.0 |
| Component: | Loader | Severity: | S3 (normal) |
| Assigned To: | Dav Glass | Target Release: | |
| Location: | Library Code | Priority: | P3 (normal) |
| Tags: | Relates To: | ||
| Browsers: | All | ||
| URL: | |||
| Test Information: | |||
Attachments
Attachment #1: yui-testcase-3.5.1.zip (download)Attachment #2: yui-testcase.zip (download)
Change History
|
Posted: 02/22/11
|
|
Posted: 02/22/11
Auto-loading the intl package currently requires the loader... if you are not using loader, you should add intl to the requirements list for your custom module. |
|
Posted: 03/1/11
Hi Ryan, I've just attached a testcase as requested (@adam: we are using the loader, as you can see). |
|
Posted: 03/1/11
I'd guess this is something to do with the groups config, but I'm no expert on that. In any case, when I added 'intl' to the YUI().use() call on line 99 of template.js, the problem went away. Adam, I'm passing this to you to determine whether this behavior is expected or a bug. |
|
Posted: 03/2/11
Ryan, thank you for your quick response: we'll wait for Adam, but for completeness: the immediate error disappears when "adding 'intl' to the YUI().use() call" as you suggested, but everything you do with autocomplete from now on throws an error: for example, if you select an item, you will see the error I listed above in the ticket description: 's is undefined', using Y.Lang.Sub (I think). |
|
Posted: 04/20/11
|
|
Posted: 04/26/11
|
|
Posted: 05/12/11
Hi all, do you have any plans about solving this for 3.4.0? |
|
Posted: 05/26/11
|
|
Posted: 06/9/11
|
|
Posted: 08/18/11
|
|
Posted: 06/5/12
This is solved in 3.4.0, but not in 3.5.1; we uploaded the test case against YUI-3.5.1 and it fails with the same error. |
|
Posted: 06/5/12
This ticket was marked as a duplicate of #2532268 |
Ryan Grove
If possible, could you please provide a reduced test case that demonstrates the problem? I'm also CCing Adam in case this rings any bells.