Permalink
Browse files

Set loader path for local and hosted development.

  • Loading branch information...
1 parent 241ff3a commit af3bce51ba6676592a70e5bde7145936bd768ed4 @nelstrom committed Feb 14, 2012
Showing with 12 additions and 4 deletions.
  1. +0 −4 app.js
  2. +6 −0 hosted.html
  3. +6 −0 index.html
View
4 app.js
@@ -1,7 +1,3 @@
-Ext.Loader.setConfig({
- enabled: true
-});
-
Ext.application({
name: 'Sencha',
View
@@ -5,6 +5,12 @@
<link rel="stylesheet" href="http://dev.sencha.com/deploy/sencha-touch-2-b2/resources/css/sencha-touch.css" type="text/css">
<script type="text/javascript" src="http://dev.sencha.com/deploy/sencha-touch-2-b2/sencha-touch-debug.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ Ext.Loader.setConfig({
+ enabled: true,
+ paths: { 'Ext': 'http://dev.sencha.com/deploy/sencha-touch-2-b2/src' }
+ });
+ </script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
View
@@ -5,6 +5,12 @@
<link rel="stylesheet" href="app.css" type="text/css">
<script type="text/javascript" src="touch/sencha-touch-debug.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ Ext.Loader.setConfig({
+ enabled: true,
+ paths: { 'Ext': 'touch/src' }
+ });
+ </script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>

0 comments on commit af3bce5

Please sign in to comment.