This project has moved. For the latest updates, please go here.
1
Vote

RegisterEnumForAjax omits parent namespace

description

Using version 7.7.31.1 for .NET 2.0
 
RegisterEnumForAjax omits the immediate parent namespace when generating the client side representation.
 
Given the following enum definition
 
namespace X.Y.Z
{
    public enum Foo
    {
        Bar,
        Baz
    }
}
 
It is rendered to the client as
 
if(typeof X == "undefined") X={};
if(typeof X.Y == "undefined") X.Y={};
X.Y.Z.Foo = {
    "Bar":0,
    "Baz":1
}
 
There seems to be a line like the following missing
 
if(typeof X.Y.Z == "undefined") X.Y.Z={};

comments

wrote Mar 21, 2008 at 9:29 PM

Resolved with changeset 31865.

interactive wrote Mar 25, 2008 at 9:59 AM

** Closed by interactive 3/21/2008 1:29 PM

interactive wrote Mar 25, 2008 at 9:59 AM

wrote Mar 25, 2008 at 9:59 AM

wrote Feb 14, 2013 at 9:11 PM

wrote Mar 21, 2014 at 1:18 PM