Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use requireJS in the packaged version to load the debugger and code e…
…ditor

git-svn-id: svn://svn.ajax.org/platform/source/trunk@5847 3c3c2983-eddd-4584-88e6-321645f70290
  • Loading branch information
fjakobstest authored and fjakobs committed Oct 4, 2010
1 parent d2bd809 commit 49fcb41
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion jpack_end.js
Expand Up @@ -23,6 +23,16 @@ else*/
apf.addDomLoadEvent(function(){apf.Init.run('body');});

//Start
apf.start();
if (window.require && typeof require.def == "function") {
require([
"apf/elements/codeeditor",
"apf/elements/debugger",
"apf/elements/debughost"
], function() {
apf.start()
});
}
else
apf.start();

// #endif

0 comments on commit 49fcb41

Please sign in to comment.