<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,13 +3,23 @@
 	&lt;script&gt;
 		function run(lib){
 			document.getElementById('chooseLib').innerHTML = 'Running ' + lib;
-			loadScript('../js/'+lib+'.js', 'with'+lib+'.js');
-			function loadScript(){
-				for(var i=0,ii=arguments.length;i&lt;ii;i++){
-					var s = document.createElement(&quot;script&quot;);
+			loadScript(['../js/'+lib+'.js', 'with'+lib+'.js']);
+			function loadScript(srcs){
+				if(srcs.length &gt; 0){
+					var src = srcs.shift(),
+						s = document.createElement(&quot;script&quot;);
 					s.charset = &quot;UTF-8&quot;;
-					s.src = arguments[i];
-					document.body.appendChild(s);				
+					s.src = src;
+					document.body.appendChild(s);	
+					if(typeof s.onreadystatechange === 'function'){
+						s.onreadystatechange = function(){
+							loadScript(srcs);
+						};
+					}else{
+						s.onload = function(){
+							loadScript(srcs);
+						};
+					}
 				}
 			}
 		}</diff>
      <filename>test/testPage.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>daeb9c9a409641051b46e4548ae9bfe3a679c7fe</id>
    </parent>
  </parents>
  <author>
    <name>mic</name>
    <email>mic@beebole.com</email>
  </author>
  <url>http://github.com/pure/pure/commit/1c067eba60aa591ab4f4f173859a918b00eb706f</url>
  <id>1c067eba60aa591ab4f4f173859a918b00eb706f</id>
  <committed-date>2009-06-23T17:06:03-07:00</committed-date>
  <authored-date>2009-06-23T17:06:03-07:00</authored-date>
  <message>fix the load async for safari</message>
  <tree>57e5ffa23f6ded1c2d366221eac2d6780a9d54a3</tree>
  <committer>
    <name>mic</name>
    <email>mic@beebole.com</email>
  </committer>
</commit>
