Javascript enumerated objects
Hi everyone, this is a question which has to do with the enumerated objects in the javascript model such as "ElementPlacement.INSIDE" or, "Justification.CENTER".
Here is the thing, we have plenty of these objects available to us, and alerting the value of a textFrame.paragraphs[0].paragraphAttributes.justification will yield something like "Justification.CENTER".
In the OMV, the Justification object contains plenty of enumerated values such as CENTER:int, Value:2 and FULLJUSTIFY:int, Value 6.
Now, when I write something like this,
var Colors = {
BLUE: 1,
GREEN: 2,
ORANGE: 3
};
var item = {};
item.color = Colors.ORANGE;
alert(item.color);
Of course, my alert does not say "Colors.ORANGE", it says "3". But, when you alert a justification of a paragraph, it will not say a number, but an object.
Can anyone explain to me what their special objects have that mine don't?
