1
0
Преглед на файлове

I've added a line to setup the getScript so it cache is true
If we don't do this, jQuery will append an argument with the timestamp
and Kaliningrad "will see the stars"

Sebastian Sastre преди 13 години
родител
ревизия
a2cd98eb66
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 1 0
      js/amber.js
  2. 3 1
      js/init.js

+ 1 - 0
js/amber.js

@@ -205,6 +205,7 @@ amber = (function() {
 	};
 
 	function loadJSViaJQuery(url, callback) {
+		$.ajaxSetup({cache: true});
 		$.getScript(jsToLoad[0], callback);
 	};
 

+ 3 - 1
js/init.js

@@ -1,5 +1,7 @@
 smalltalk.init(smalltalk.Object);
-smalltalk.classes()._do_(function(each) {each._initialize()});
+smalltalk.classes()._do_(function(each) {
+	console.log(each.className); 
+	each._initialize()});
 
 /* Similar to jQuery(document).ready() */