Whats going on here.. a bug? variable returns "anonymous"
I initialize all my action manager id this way. But it fails in one single instance..
When I try to get the ID for "name".
You would expect the code below to alert the same ID, but the first one is correct, the second one alerts "anonymous"
When I save the id to var = name; I get "Adobe Photoshop" returned.
When I save it to var = stringName it is correct. But I'm initializing a ton of ID's this way, why is this one "anonymous"?
alert(stringIDToTypeID('name'));
PSString = function() {};
PSString.name = stringIDToTypeID('name');
alert(PSString.name);