fixed a race-condition in script loading with IE. popcorn-port
authorhamidouk
Tue, 03 Jan 2012 16:00:16 +0100
branchpopcorn-port
changeset 572 5597a15fe9d0
parent 571 a471ef7efc0e
child 573 d0bce45283f7
fixed a race-condition in script loading with IE.
src/js/main.js
--- a/src/js/main.js	Tue Jan 03 15:46:01 2012 +0100
+++ b/src/js/main.js	Tue Jan 03 16:00:16 2012 +0100
@@ -16,7 +16,7 @@
     // Localize jQuery variable
 		IriSP.jQuery = null;
     var $L = $LAB.script(libs.jQuery).script(libs.swfObject)
-                .script(libs.jQueryUI)
+                .script(libs.jQueryUI).wait();
                                    
     if (config.player.type === "jwplayer") {
       // load our popcorn.js lookalike