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

Unified 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 side-by-side diff with in-line comments
Download patch
« examples/js/cube.js ('K') | « examples/js/wget.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/js/world.js
diff --git a/examples/js/world.js b/examples/js/world.js
index f76626aa962f44a4622a5c58768710fa6dfeb030..a76490e9f0c9c73a7b25b27950af47690c549409 100644
--- a/examples/js/world.js
+++ b/examples/js/world.js
@@ -3,9 +3,11 @@
define("main", [
"console",
"mojo/services/public/js/application",
-], function(console, appModule) {
+], function(console, application) {
- class World extends appModule.Application {
+ var Application = application.Application;
+
+ class World extends Application {
initialize(args) {
console.log(this.url + ": World");
this.quit();
« 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