Browse 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 13 years ago
parent
commit
adb2782f2f
2 changed files with 6 additions and 8 deletions
  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();
-}
+}