Permalink
Browse files

Move APP onto window

  • Loading branch information...
1 parent d19444d commit ab0b920aa1ee33b9194536cf5f5871167dcbbd6b @matthew-andrews committed Apr 7, 2013
Showing with 3 additions and 3 deletions.
  1. BIN .DS_Store
  2. +1 −1 api/resources/index.php
  3. +2 −2 tutorial.html
View
BIN .DS_Store
Binary file not shown.
View
@@ -3,7 +3,7 @@
// This would be a sensible point to compress your Javascript.
$js = '';
$js .= file_get_contents('../../libraries/client/fastclick.js');
-$js = $js . 'var APP={}; (function (APP) {';
+$js = $js . 'window.APP={}; (function (APP) {';
$js = $js . file_get_contents('../../source/application/applicationcontroller.js');
$js = $js . file_get_contents('../../source/articles/articlescontroller.js');
$js = $js . file_get_contents('../../source/articles/article.js');
View
@@ -69,7 +69,7 @@
// This would be a sensible point to compress your Javascript.
$js = '';
$js .= file_get_contents('../../libraries/client/fastclick.js');
-$js = $js . 'var APP={}; (function (APP) {';
+$js = $js . 'window.APP={}; (function (APP) {';
$js = $js . file_get_contents('../../source/application/applicationcontroller.js');
$js = $js . file_get_contents('../../source/articles/articlescontroller.js');
$js = $js . file_get_contents('../../source/articles/article.js');
@@ -727,4 +727,4 @@
<span style="font-size: 80%; line-height: 1em;">By <a href="http://mattandre.ws">Matt Andrews</a> – @andrewsmatt on <a href="http://twitter.com/andrewsmatt">Twitter</a> &amp; <a href="http://weibo.com/andrewsmatt">Weibo</a>.</span>
-<p align="right"><strong><a href="http://labs.ft.com/2012/11/using-an-iframe-to-stop-app-cache-storing-masters/">Continue to part 3 - ‘Fixing’ the application cache with an iframe <span class="meta-nav">→</span></a></strong></p>
+<p align="right"><strong><a href="http://labs.ft.com/2012/11/using-an-iframe-to-stop-app-cache-storing-masters/">Continue to part 3 - ‘Fixing’ the application cache with an iframe <span class="meta-nav">→</span></a></strong></p>

0 comments on commit ab0b920

Please sign in to comment.