Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: examples/js/world.js

Issue 839553004: Mojo JS Bindings: Update User's Guide, examples (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« examples/js/cube.js ('K') | « examples/js/wget.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 });
OLDNEW
« examples/js/cube.js ('K') | « examples/js/wget.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698