On Wed, Jun 26, 2013 at 1:43 PM, Vladimir Lipets <[email protected]>wrote:

> Hello,
>
> I faced following problem.
> I defined the property "myvalue" as follows:
>
>         myvalue: {
>                                         check : "Integer",
>                                         nullable : true,
>                                         init : null,
>                                         event : "changeDailyReport4"
>                                 },
>
> However, when i set it to null, i obtain an error:
>
> 005983 Assertion error! Invalid incoming value for property 'myvalue' of
> class 'fms3.page.DailyReport': Expected value to be an integer but found
> NaN! Stack trace:
>
> I dont understand why it happen, when the value is set to be "nullable"
>

NaN is not an integer, and is not null. You aren't setting it to null;
you're setting it to something else. (NaN stands for "Not a Number" and is
typically the result of a floating-point operation that could not yield a
value.)

Derrell
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to