Fixes: U4-6559 ServerVariables parsing - An Item with the same key has already been added

This commit is contained in:
Shannon
2015-04-27 12:41:19 +10:00
parent 40b75b7cf5
commit 550d690a31
2 changed files with 156 additions and 149 deletions

View File

@@ -8,7 +8,7 @@ namespace Umbraco.Web.UI.JavaScript
{
/// <summary>
/// Could allow developers to add custom variables on startup
/// Allows developers to add custom variables on parsing
/// </summary>
public static event EventHandler<Dictionary<string, object>> Parsing;
@@ -18,6 +18,7 @@ namespace Umbraco.Web.UI.JavaScript
{
var vars = Resources.ServerVariables;
//Raise event for developers to add custom variables
if (Parsing != null)
{
Parsing(null, items);