fixed proto thingy

Manuite committed Mar 22, 2013
commit abf2deb101fb950d400b1e4cf74302378338097b
Showing 2 changed files with 10 additions and 4 deletions
generators/foundation/app/views/pages/index.liquid +5 -2
@@ @@ -102,8 +102,11 @@
{% include footer %}
- {{ 'vendor/jquery.js' | javascript_tag }}
- {{ 'vendor/zepto.js' | javascript_tag }}
+ <script>
+ document.write('<script src=' +
+ ('__proto__' in {} ? '{{ site.root }}javascripts/vendor/zepto' : '{{ site.root }}javascripts/vendor/jquery') +
+ '.js><\/script>')
+ </script>
{{ 'foundation.min.js' | javascript_tag }}
{{ 'foundation.min.js' | javascript_tag }}
generators/foundation/app/views/pages/index.liquid.haml +5 -2
@@ @@ -89,8 +89,11 @@ published: true
{% include footer %}
- {{ 'vendor/jquery.js' | javascript_tag }}
- {{ 'vendor/zepto.js' | javascript_tag }}
+ :javascript
+ document.write('<script src=' +
+ ('__proto__' in {} ? '{{ site.root }}javascripts/vendor/zepto' : '{{ site.root }}javascripts/vendor/jquery') +
+ '.js><\/script>')
+
{{ 'foundation.min.js' | javascript_tag }}
/