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

Unified Diff: examples/js/world.js

Issue 757703002: Creates a JavaScript Applicaiton (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Do not try to call undefined Application methods. Created 6 years, 1 month 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/world.js
diff --git a/examples/js/world.js b/examples/js/world.js
new file mode 100644
index 0000000000000000000000000000000000000000..dc3afe75affc7c984b4a8b1af1e338232277a9a2
--- /dev/null
+++ b/examples/js/world.js
@@ -0,0 +1,15 @@
+#!mojo:js_content_handler
+// See hello.js.
+define("main", ["console"], function(console) {
+ function Application(shell, url) {
+ console.log(url + ": World");
+ }
+
+ Application.prototype.initialize = function(args) {
+ }
+
+ Application.prototype.acceptConnection = function(url, serviceProvider) {
+ }
+
+ return Application;
+});

Powered by Google App Engine
This is Rietveld 408576698