Out-of date 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


Obsolete prototype.js framework is used. This old version contains several 
number of 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 brakes 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

Reply via email to