arcabouco 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bddbf9b5944f2c9aa202630b6b85f901c4ce7a3
4
- data.tar.gz: 3ad5b4c9721762c20a88370ecf53e7a2ca9edc13
3
+ metadata.gz: a5c79f1863c6c785b08141c9cf5049434c20cab4
4
+ data.tar.gz: 6a34f1114ded1bf53cabb8a2cb2b0705646d7535
5
5
  SHA512:
6
- metadata.gz: 099678df91f56f2a1e51811fdec5876f6083a7e749cbfcfec097220d1b8a779b2a9c4beaaf96ebc388d710b4e3572ef2cf2f5babcce94431994dc2faac708ec4
7
- data.tar.gz: f776d0974740e29b83ab786a49f6ac9dba81b553093baa5a3e12fa879c1cd2739477e9d82844d53a6c4fdb2022d0931e8c90ca1989b79f6b1df81a3c90fc2794
6
+ metadata.gz: cd458d111a2d407988257b9638a95d77636ccaa1dc7d04682cf77c1ed462619d7afc3657b882f071606fa18c12db49f4686865d9840060de78665cfc07a4747d
7
+ data.tar.gz: 2c0f20d0ba6d4146dc349a99e259694b56102047e3a97691ced17f277834352e72efd1ef7e10fb786a63322e1a77a5b5ff0435ef797d50081feac78fde41625d
@@ -1,3 +1,3 @@
1
1
  module Arcabouco
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -49,11 +49,12 @@
49
49
  }
50
50
  }
51
51
 
52
- function addScriptTag(src)
52
+ function addScriptTag(src,onload)
53
53
  {
54
54
  var newScript = document.createElement('script');
55
55
  newScript.type = 'text/javascript';
56
56
  newScript.src = '/app.assets/' + src;
57
+ newScript.onload = onload;
57
58
  document.head.appendChild(newScript);
58
59
  }
59
60
 
@@ -66,8 +67,10 @@
66
67
  jQuery.getJSON( app.assets_manifest, function(data) {
67
68
  $('head').append('<link rel="stylesheet" href="/app.assets/' + data.assets["vendor.css"] + '" type="text/css" />');
68
69
  $('head').append('<link rel="stylesheet" href="/app.assets/' + data.assets["app.css"] + '" type="text/css" />');
69
- addScriptTag( data.assets['vendor.js'] );
70
- addScriptTag( data.assets['app.js'] );
70
+ addScriptTag( data.assets['vendor.js'], function() {
71
+ // After vendor is loaded. Start application
72
+ addScriptTag( data.assets['app.js'] );
73
+ });
71
74
  });
72
75
  }
73
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcabouco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Negri