I'm compiling some of my dojo stuff for the first time today. Just for simplicity while fighting this beast, I compiled everything I had (except dojo.js) into this one file called all.js.
But in all.js, I have an entry point that's totally sealed in this anonymous function that I need to call, but it's not very obvious to me how to get at it.
Here's the start of the file:
require({cache:{
'dojo/dom-geometry':function(){
define(["./sniff", "./_base/window","./dom", "./dom-style"],
function(has, win, dom, style){
// module:
// dojo/dom-geometry
// the result object
var geom = {
// summary:
// This module defines the core dojo DOM geometry API.
};
//dom-geometry continues on for awhile....
and the part I'm interested in, on line 14798! How can I call CreateActivityEntryPoint?
//end of previous part
return singleton;
});
},
'app/Activity/Create':function(){
function CreateActivityEntryPoint()
{
//do things here.
}
Here's the part that comes after:
}, //closing bracket of Activity/Create anon function
'dojo/dom-attr':function(){
define(["exports", "./sniff", "./_base/lang", "./dom", "./dom-style", "./dom-prop"],
function(exports, has, lang, dom, style, prop){
// module:
In my main page view, I just need to call the entry point. Previously it was simply on the window object, but not anymore! How do I call the Create.js file functions out of this "cache:" object?
I've tried:
require(["app/Activity/Create"], function (create) {
create.CreateActivityEntryPoint();
});
but create is undefined, it seems.