Skip to content

Instantly share code, notes, and snippets.

@kfranqueiro
Created June 18, 2015 22:26
Show Gist options
  • Select an option

  • Save kfranqueiro/7e3c9594918dbc3bea32 to your computer and use it in GitHub Desktop.

Select an option

Save kfranqueiro/7e3c9594918dbc3bea32 to your computer and use it in GitHub Desktop.

Revisions

  1. kfranqueiro created this gist Jun 18, 2015.
    18 changes: 18 additions & 0 deletions test.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <!DOCTYPE html>
    <html>
    <body>
    <script>
    var dojoConfig = {
    async: true,
    baseUrl: "",
    tlmSiblingOfDojo: false
    };
    </script>
    <script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js"></script>
    <script>
    require(['testModule'], function() {
    console.log('all loaded');
    });
    </script>
    </body>
    </html>
    5 changes: 5 additions & 0 deletions testModule.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    define([], function () {
    console.log('in factory');
    });

    console.log('after factory');