Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Fix IE8 "Member not found" error
authorJimmy Mabey <jimmy@velsoft.com>
Wed, 19 Oct 2011 16:43:17 +0000 (13:43 -0300)
committerJimmy Mabey <jimmy@velsoft.com>
Wed, 19 Oct 2011 16:43:17 +0000 (13:43 -0300)
Setting window.constructor causes this error in IE8, which happens when QUnit
extends window.

qunit/qunit.js

index 1c8c608..d630c43 100644 (file)
@@ -1000,7 +1000,9 @@ function extend(a, b) {
        for ( var prop in b ) {
                if ( b[prop] === undefined ) {
                        delete a[prop];
-               } else {
+
+               // Avoid "Member not found" error in IE8 caused by setting window.constructor
+               } else if ( prop !== "constructor" || a !== window ) {
                        a[prop] = b[prop];
                }
        }

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf