
26.08.2007, 22:06
|
|
|
...
модератор форума
Регистрация: Sep 2006
Адрес: Minsk
Сообщений: 4,286
|
В твоем примере ничего не противоречит. Выдержка из хэлпа на эту тему: "When you initialize properties inline, the expression on the right side of an assignment must be a compile-time constant. That is, the expression cannot refer to anything that is set or defined at runtime. Compile-time constants include string literals, numbers, Boolean values, null, and undefined, as well as constructor functions for the following top-level classes: Array, Boolean, Number, Object, and String."
" == equality operator -- Variables representing objects, arrays, and functions are compared by reference. Two such variables are equal if they refer to the same object, array, or function."
Почему такой результат, я хз.
Последний раз редактировалось udaaff; 26.08.2007 в 22:11.
|