Explorar el Código

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 hace 13 años
padre
commit
adb2782f2f
Se han modificado 2 ficheros con 6 adiciones y 8 borrados
  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();
-}
+}