Ver código fonte

Merge branch 'master' of github.com:NicolasPetton/amber

Conflicts:
	js/amber.js
Sebastian Sastre 13 anos atrás
pai
commit
5d1c864d54
1 arquivos alterados com 6 adições e 2 exclusões
  1. 6 2
      js/amber.js

+ 6 - 2
js/amber.js

@@ -205,8 +205,12 @@ amber = (function() {
 	};
 
 	function loadJSViaJQuery(url, callback) {
-		$.ajaxSetup({cache: true});
-		$.getScript(jsToLoad[0], callback);
+		$.ajax({
+			dataType: "script",
+			url: jsToLoad[0],
+			cache: deploy,
+			success: callback
+		});
 	};
 
 	function writeScriptTag(src) {