Browse Source

do not load jquery if already loaded

Laurent Laffont 12 years ago
parent
commit
6efe4b1ab9
1 changed files with 4 additions and 2 deletions
  1. 4 2
      js/amber.js

+ 4 - 2
js/amber.js

@@ -30,8 +30,10 @@
     }
 
     function loadDependencies() {
-	loadJS('lib/jQuery/jquery-1.6.4.min.js');
-	loadJS('lib/jQuery/jquery-ui-1.8.9.custom.min.js');
+	if (typeof jQuery == 'undefined') {
+		loadJS('lib/jQuery/jquery-1.6.4.min.js');
+		loadJS('lib/jQuery/jquery-ui-1.8.9.custom.min.js');
+	}
     }
 
     function loadIDEDependencies() {