Line | |
---|
1 | define([ |
---|
2 | "./router/RouterBase" |
---|
3 | ], function(RouterBase){ |
---|
4 | |
---|
5 | // module: |
---|
6 | // dojo/router |
---|
7 | |
---|
8 | /*===== |
---|
9 | return { |
---|
10 | // summary: |
---|
11 | // A singleton-style instance of dojo/router/RouterBase. See that |
---|
12 | // module for specifics. |
---|
13 | // example: |
---|
14 | // | router.register("/widgets/:id", function(evt){ |
---|
15 | // | // If "/widgets/3" was matched, |
---|
16 | // | // evt.params.id === "3" |
---|
17 | // | xhr.get({ |
---|
18 | // | url: "/some/path/" + evt.params.id, |
---|
19 | // | load: function(data){ |
---|
20 | // | // ... |
---|
21 | // | } |
---|
22 | // | }); |
---|
23 | // | }); |
---|
24 | }; |
---|
25 | =====*/ |
---|
26 | |
---|
27 | return new RouterBase({}); |
---|
28 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.