resin 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/amber/js/amber.js CHANGED
@@ -12,7 +12,6 @@ amber = (function() {
12
12
  var scripts = document.getElementsByTagName("script");
13
13
  var src = scripts[ scripts.length - 1 ].src;
14
14
  var home = src.split("/").slice(0, -2).join("/") + "/";
15
- var nocache = '?' + (new Date()).getTime();
16
15
 
17
16
  var debug;
18
17
  var deploy;
@@ -20,6 +19,7 @@ amber = (function() {
20
19
  var spec;
21
20
  var jsToLoad = [];
22
21
  var loadJS;
22
+ var nocache = '';
23
23
 
24
24
  that.toggleIDE = function() {
25
25
  if ($('#jtalk').length == 0) {
@@ -205,7 +205,12 @@ amber = (function() {
205
205
  };
206
206
 
207
207
  function loadJSViaJQuery(url, callback) {
208
- $.getScript(jsToLoad[0], callback);
208
+ $.ajax({
209
+ dataType: "script",
210
+ url: jsToLoad[0],
211
+ cache: deploy,
212
+ success: callback
213
+ });
209
214
  };
210
215
 
211
216
  function writeScriptTag(src) {
data/amber/js/init.js CHANGED
@@ -1,5 +1,6 @@
1
1
  smalltalk.init(smalltalk.Object);
2
- smalltalk.classes()._do_(function(each) {each._initialize()});
2
+ smalltalk.classes()._do_(function(each) {
3
+ each._initialize()});
3
4
 
4
5
  /* Similar to jQuery(document).ready() */
5
6