gjs r49 - trunk/test/js/modules



Author: jobi
Date: Fri Oct 24 15:16:06 2008
New Revision: 49
URL: http://svn.gnome.org/viewvc/gjs?rev=49&view=rev

Log:
fix assumption in jsUnit.js that it was loaded in global scope so "window.top" was the same as "top"

Patch by Havoc Pennington

Modified:
   trunk/test/js/modules/jsUnit.js

Modified: trunk/test/js/modules/jsUnit.js
==============================================================================
--- trunk/test/js/modules/jsUnit.js	(original)
+++ trunk/test/js/modules/jsUnit.js	Fri Oct 24 15:16:06 2008
@@ -59,9 +59,7 @@
       }
     }
   }
-  try {
-    window.top = tempTop;
-  } catch (e) {}
+  top = tempTop;
 }
 
 jsUnitFixTop();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]