[
https://issues.apache.org/jira/browse/TOMAHAWK-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved TOMAHAWK-1576.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.1.11-SNAPSHOT
Assignee: Leonardo Uribe
Now prototype version 1.7.0 and scriptaculous.js 1.9.0 are used. Thanks for the
suggestion.
> Outdated version of prototype.js is used
> ----------------------------------------
>
> Key: TOMAHAWK-1576
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1576
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: AJAX Form Components
> Affects Versions: 1.1.10
> Environment: any
> Reporter: Sergey Chistyakov
> Assignee: Leonardo Uribe
> Fix For: 1.1.11-SNAPSHOT
>
> Attachments: Array_shift_override_fix_for_empty_arrays.patch
>
>
> Obsolete version of prototype.js framework is used. This old version contains
> several bugs which are fixed in current version of prototype. The most major
> one is the following:
> prototype.js overrides browser's built-in function Array.shift()
> shift: function() {
> var result = this[0];
> for (var i = 0; i < this.length - 1; i++)
> this[i] = this[i + 1];
> this.length--;
> return result;
> },
> which causes infinite loop and breaks browsers work in case of empty array.
> Built-in function works fine. This bug is fixed in the current version of
> Prototype.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira