Ticket #2531855 (closed enhancement)
Reporter John Lindal |
Opened: 03/6/12 Last modified: 04/19/12 Status: closed Type: enhancement Resolution: wontfix |
Owner Dav Glass |
Target Release: 3.6.0 Priority: P3 (normal) |
|---|---|---|---|
| Summary: | YUI instance's combine:false should override group's combine:true | ||
| Description: | First, I configure a group: window.YUI_config = Then I require them: YUI({ When I view the generated source in Firefox, I see this script request: I think the combine:false configuration for the YUI instance should override the group's combine:true configuration. In addition, I think that Loader should fall back on using comboBase even for single modules, if base isn't defined. |
||
| Type: | enhancement | Observed in Version: | 3.5.0pr2 |
| Component: | Loader | Severity: | S4 (low) |
| Assigned To: | Dav Glass | Target Release: | 3.6.0 |
| Location: | Library Code | Priority: | P3 (normal) |
| Tags: | Relates To: | ||
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | |||
Change History
|
Posted: 03/6/12
|
|
Posted: 03/8/12
I see your point, but from a usability perspective, if I want to turn on debugging, then I want to set filter to "raw" or "debug" and combine=false only on my YUI instance, since I might not have control over the group definitions. |
|
Posted: 04/19/12
This is not a change I feel comfortable making, there are many times I want to combine a group but not combine the main modules. Changing this, changes the entire point of group overrides. |
I don't see this as a bug, the group always overrides the main config, it's the same thing as you saying this:
The group wins, since it's more specific.
Under the hood, we just reassign the config to Loader during a group config.
Now, I can "maybe" see mixing the config instead of clobbering, but that will change the way the logic works and has worked since the beginning and may cause issues with current users.
I'm not sure if this is even the right thing to do, but I will look into it for 3.6.0 and discuss it with the team then.