静的プロパティを格納する FileController という「クラス」があります。その価値があるのは、イベントの種類を識別するために使用する文字列です。「クラス」の静的プロパティとして文字列にアクセスしようとすると、未定義になります。なぜだろう?
FileController = function(galId)
{
FileController.GALLERY_UPLOAD_START = "galleryUploadStart";
}
//その後、別のファイルで...
function initDragSystem()
{
console.log('@initDragSystem FileController ' + FileController); //Traces out the constructor method
console.log('@initDragSystem FileController.GALLERY_UPLOAD_START = ' + FileController.GALLERY_UPLOAD_START) //traces out 'undefined'
}