[
https://issues.apache.org/jira/browse/WICKET-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651327#action_12651327
]
Martin Benda commented on WICKET-1960:
--------------------------------------
Mathematically, the NaN (Not a Number) is unequal to all other numbers, +-Inf
and *itself* because it just has no concrete value... The isNaN function is the
correct way to test whether a value is NaN or not.
So the expression
Number(index)!=Number.NaN?Number(index)+1:index
is in fact just
Number(index)+1
Regards,
Bendis
> AutoCompleteTextField - gives a type mismatch error on IE - version
> wicket-1.4-rc1
> ----------------------------------------------------------------------------------
>
> Key: WICKET-1960
> URL: https://issues.apache.org/jira/browse/WICKET-1960
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.4-RC1
> Reporter: Dipu C Seminlal
> Fix For: 1.4-RC1
>
> Attachments: wicket-autocomplete-patch.txt
>
>
> wicket-autocomplete.js
> function function showAutoComplete()
> line 291 container.style.zIndex=(!isNaN(Number(index))?Number(index)+1:index);
> looks like IE doesn't like big i in zIndex, IE seem to be be happy with
> zindex
> not sure if that's the correct way to resolve the issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.