Permalink
Browse files

Update src/js/main.js

added appropriate jquery and dojo ready methods.
  • Loading branch information...
1 parent 2036c39 commit 2da9a36327bc5f55383bd4ea284ddc10d49c463a @odoe committed Sep 11, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/js/main.js
View
@@ -47,9 +47,13 @@
define.amd.jQuery = true;
- require(['app'], function(App) {
- console.log("load init");
- return App.initialize();
+ require(['jquery', 'app', 'dojo/ready'], function($, App, ready) {
+ return $(document).ready(function() {
+ return ready(function() {
+ esri.config.defaults.io.proxyUrl = "proxy.php";
+ return App.initialize();
+ });
+ });
});
}).call(this);

0 comments on commit 2da9a36

Please sign in to comment.