Skip to content

Commit

Permalink
[mms] Fix prototype.js issue in IE 9 regarding array iteration in a p…
Browse files Browse the repository at this point in the history
…arent window.

Got lost when we upgraded prototype.js.  But this is an issue when a
window runs code in a parent (the native IE forEach handler does not
correctly set the value of 'this' in the called function).
  • Loading branch information
slusarz committed Oct 25, 2013
1 parent b5a5e77 commit 388a6c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/Core/js/prototype.js
Expand Up @@ -1112,7 +1112,7 @@ Array.from = $A;
(function() {
var arrayProto = Array.prototype,
slice = arrayProto.slice,
_each = arrayProto.forEach; // use native browser JS 1.6 implementation if available
_each = Prototype.Browser.IE ? null : arrayProto.forEach; // use native browser JS 1.6 implementation if available (HORDE EDIT)

function each(iterator, context) {
for (var i = 0, length = this.length >>> 0; i < length; i++) {
Expand Down
4 changes: 2 additions & 2 deletions framework/Core/package.xml
Expand Up @@ -39,7 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix prototype.js issue in IE 9 regarding array iteration in a parent window.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -3209,7 +3209,7 @@
<date>2013-10-21</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix prototype.js issue in IE 9 regarding array iteration in a parent window.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 388a6c0

Please sign in to comment.