|
@@ -25,17 +25,17 @@
|
|
|
<!-- EXAMPLE APP END -->
|
|
|
<script type='text/javascript'>
|
|
|
var global = typeof global === "undefined" ? window : global || window;
|
|
|
- new Promise(function (resolve, reject) {
|
|
|
- require(['app'], resolve, reject);
|
|
|
- }).then(function (amber) {
|
|
|
- return amber.initialize({
|
|
|
- //used for all new packages in IDE
|
|
|
- 'transport.defaultAmdNamespace': "{%= namespace %}"
|
|
|
- }).then(function () {
|
|
|
- require(["amber-ide-starter-dialog"], function (dlg) {
|
|
|
- dlg.start();
|
|
|
+ require(['app'], function (amberPromise) {
|
|
|
+ amberPromise.then(function (amber) {
|
|
|
+ amber.initialize({
|
|
|
+ //used for all new packages in IDE
|
|
|
+ 'transport.defaultAmdNamespace': "{%= namespace %}"
|
|
|
+ }).then(function () {
|
|
|
+ require(["amber-ide-starter-dialog"], function (dlg) {
|
|
|
+ dlg.start();
|
|
|
+ });
|
|
|
+ amber.globals.{%= name %}._start();
|
|
|
});
|
|
|
- amber.globals.{%= name %}._start();
|
|
|
});
|
|
|
});
|
|
|
</script>
|