-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bit the bullet. RequireJS 2.0 compatible application.
Remover included RequireJS (load from assets).
- Loading branch information
1 parent
44ed919
commit 37a4b5e
Showing
5 changed files
with
161 additions
and
2,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
require({ | ||
"baseUrl" : "js", | ||
"paths" : { | ||
"jquery" : "../../../../assets/jquery.min", | ||
"troopjs-bundle" : "lib/troopjs-bundle" | ||
"troopjs-bundle" : "lib/troopjs-bundle.min" | ||
}, | ||
"priority": [ "jquery", "config", "troopjs-bundle" ] | ||
}, [ "jquery", "widget/application" ], function App(jQuery, Application) { | ||
jQuery(document).ready(function ready($) { | ||
Application($(this.body), "app/todos").start(); | ||
}, [ "require", "jquery", "troopjs-bundle" ], function Deps(parentRequire, jQuery) { | ||
|
||
// Application and plug-ins | ||
parentRequire([ | ||
"widget/application", | ||
"troopjs-jquery/weave", | ||
"troopjs-jquery/destroy", | ||
"troopjs-jquery/hashchange", | ||
"troopjs-jquery/action" ], function App(Application) { | ||
|
||
// Hook ready | ||
jQuery(document).ready(function ready($) { | ||
Application($(this.body), "app/todos").start(); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.