OLD | NEW |
1 #!mojo:js_content_handler | 1 #!mojo mojo:js_content_handler |
2 // See hello.js. | 2 // See hello.js. |
3 define("main", [ | 3 define("main", [ |
4 "console", | 4 "console", |
5 "mojo/services/public/js/application", | 5 "mojo/services/public/js/application", |
6 ], function(console, application) { | 6 ], function(console, application) { |
7 | 7 |
8 var Application = application.Application; | 8 var Application = application.Application; |
9 | 9 |
10 class World extends Application { | 10 class World extends Application { |
11 initialize(args) { | 11 initialize(args) { |
12 console.log(this.url + ": World"); | 12 console.log(this.url + ": World"); |
13 this.quit(); | 13 this.quit(); |
14 } | 14 } |
15 } | 15 } |
16 | 16 |
17 return World; | 17 return World; |
18 }); | 18 }); |
OLD | NEW |