Parcourir la source

manually integrte a2cd98eb66d79938dca7ae5bca68d1c9fbb335cc and 9c26804eb8c308cf7283c14b26ea9751e53be1fe from sebastian via nicolas. For some reason github, didn't think those two patches could be applied cleanly.

Dale Henrichs il y a 13 ans
Parent
commit
adb2782f2f
2 fichiers modifiés avec 6 ajouts et 8 suppressions
  1. 2 6
      js/amber.js
  2. 4 2
      js/init.js

+ 2 - 6
js/amber.js

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

+ 4 - 2
js/init.js

@@ -1,8 +1,10 @@
 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() */
 
 if(this.smalltalkReady) {
     this.smalltalkReady();
-}
+}