| OLD | NEW |
| 1 #!mojo:js_content_handler | 1 #!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, appModule) { | 6 ], function(console, application) { |
| 7 | 7 |
| 8 class World extends appModule.Application { | 8 var Application = application.Application; |
| 9 |
| 10 class World extends Application { |
| 9 initialize(args) { | 11 initialize(args) { |
| 10 console.log(this.url + ": World"); | 12 console.log(this.url + ": World"); |
| 11 this.quit(); | 13 this.quit(); |
| 12 } | 14 } |
| 13 } | 15 } |
| 14 | 16 |
| 15 return World; | 17 return World; |
| 16 }); | 18 }); |
| OLD | NEW |