This is a migrated thread and some comments may be shown as answers.

StyleSheetRegistrar and ScriptRegistrar inconsistencies

2 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kelly Stuard
Top achievements
Rank 1
Kelly Stuard asked on 13 May 2010, 10:42 PM
In the ScriptRegistrar's public constructor, the DefaultGroup is added at index 0 of the Scripts. (DefaultGroup + Adding a named one == Scripts.Count [2]).

In StyleSheetRegistrar's public constructor, this does not take place. (DefaultGroup + Adding a named one != Scripts.Count [1]).

It would be nice if this was consistent.

2 Answers, 1 is accepted

Sort by
0
Kelly Stuard
Top achievements
Rank 1
answered on 24 May 2010, 07:44 PM
Did I include enough information on this to get it looked at? Is there any further information I can provide?
0
Atanas Korchev
Telerik team
answered on 25 May 2010, 07:28 AM
Hello Kelly Stuard,

I managed to reproduce this discrepancy and fixed it. Here is how to patch the code by yourself:
  1. Open StyleSheetRegistrar.cs
  2. Locate the following lines:
    DefaultGroup = new WebAssetItemGroup("default", false) { DefaultPath = WebAssetDefaultSettings.StyleSheetFilesPath };
    StyleSheets = styleSheets;
  3. Add this after them:
    styleSheets.Insert(0, DefaultGroup);
  4. Locate this code
    if (!DefaultGroup.Items.IsEmpty())
    {
            append(new WebAssetItemCollection(DefaultGroup.DefaultPath) { DefaultGroup });
    }


  5. Delete it

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Kelly Stuard
Top achievements
Rank 1
Answers by
Kelly Stuard
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or