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

Unified Diff: examples/js/hello.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
Index: examples/js/hello.js
diff --git a/examples/js/hello.js b/examples/js/hello.js
index 136b1481a2ea9d642844f1ed561cbd6e48c978ac..4b208ce08f100f80c8352f33ab408eddb786d71e 100644
--- a/examples/js/hello.js
+++ b/examples/js/hello.js
@@ -9,9 +9,11 @@
define("main", [
"console",
"mojo/services/public/js/application",
-], function(console, appModule) {
+], function(console, application) {
- class Hello extends appModule.Application {
+ var Application = application.Application;
+
+ class Hello extends Application {
initialize(args) {
console.log(this.url + ": Hello");
if (args && args.length == 2) // args is a nullable parameter
« examples/js/cube.js ('K') | « examples/js/cube.js ('k') | examples/js/share_echo.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698