M
MC
I want to create an array that would be namespaced. What is the proper way
to do that? (Using the following two examples)
--Normal namespace object
MYNS.CarTypeCd = function() {}
--Normal Array
var CarTypeCd = new Array();
CarTypeCd [0] = new Array("Ford", "Pinto");
CarTypeCd [1] = new Array("GM", "Suburban");
doing
MYNS.CarTypeCd = new Array();
gets a CarTypeCd is not defined error.
Thank you,
Mica
to do that? (Using the following two examples)
--Normal namespace object
MYNS.CarTypeCd = function() {}
--Normal Array
var CarTypeCd = new Array();
CarTypeCd [0] = new Array("Ford", "Pinto");
CarTypeCd [1] = new Array("GM", "Suburban");
doing
MYNS.CarTypeCd = new Array();
gets a CarTypeCd is not defined error.
Thank you,
Mica