Skip to content

Commit

Permalink
Makes config/app dojo-build friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed May 12, 2016
1 parent aba9a54 commit e3c7b4e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions viewer/js/config/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(function () {
var path = location.pathname.replace(/[^\/]+$/, '');
window.dojoConfig = {
define(['dojo/_base/window'], function(window){

var path = window.global.location.pathname.replace(/[^\/]+$/, '');
var dojoConfig = window.global.dojoConfig = {
async: true,
packages: [
{
Expand All @@ -19,7 +20,7 @@
]
};

require(window.dojoConfig, [
require(dojoConfig, [
'dojo/_base/declare',

// minimal Base Controller
Expand Down Expand Up @@ -56,4 +57,6 @@
]))();
controller.startup();
});
})();
//we have to return something
return dojoConfig;
});

0 comments on commit e3c7b4e

Please sign in to comment.