|
From: <ma...@us...> - 2013-02-05 21:27:39
|
Revision: 1432
http://openautomation.svn.sourceforge.net/openautomation/?rev=1432&view=rev
Author: mayerch
Date: 2013-02-05 21:27:29 +0000 (Tue, 05 Feb 2013)
Log Message:
-----------
temporary fix till a better solution could be implemented for script loading order
Modified Paths:
--------------
CometVisu/trunk/visu/lib/compatibility.js
Modified: CometVisu/trunk/visu/lib/compatibility.js
===================================================================
--- CometVisu/trunk/visu/lib/compatibility.js 2013-02-05 21:09:59 UTC (rev 1431)
+++ CometVisu/trunk/visu/lib/compatibility.js 2013-02-05 21:27:29 UTC (rev 1432)
@@ -189,10 +189,21 @@
if( 'object' === typeof files && 0 == files.length && callback )
callback();
else
+ /*
$.getScript( files.shift(), files.length
? function(){ $.getOrderedScripts(files, callback);}
: callback
);
+ */
+ // temporary fix till a better solution could be implemented:
+ $.ajax({
+ url: files.shift(),
+ dataType: 'script',
+ async: false,
+ success: files.length
+ ? function(){ $.getOrderedScripts(files, callback);}
+ : callback
+ });
},
// inspired by http://stackoverflow.com/questions/2685614/load-external-css-file-like-scripts-in-jquery-which-is-compatible-in-ie-also
getCSS: function( url, parameters ) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|