From e038739ea4738256497630a2d00e1ee31d497311 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 20 Mar 2014 12:41:06 -0400 Subject: [PATCH] fix null ref in `m.module` example in docs --- archive/v0.1/mithril.min.zip | Bin 19855 -> 19855 bytes archive/v0.1/mithril.module.html | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/archive/v0.1/mithril.min.zip b/archive/v0.1/mithril.min.zip index 0b733d77f5d90c900456670a333e3dc334f40b36..74e7ba545514b02467a500206d2fe8a7961aa48e 100644 GIT binary patch delta 45 ucmeC5&DcMikte{LnT3l11ejAd@@UI4F{f^}l)bDEq$l(FT7f7pUsnL;CJI~t delta 45 ucmeC5&DcMikte{LnT3l11VWQH@@UI4g(h#dl)bDEq$l(FT7f7pUsnM8ZVQ|M diff --git a/archive/v0.1/mithril.module.html b/archive/v0.1/mithril.module.html index a5687ed5..95056c69 100644 --- a/archive/v0.1/mithril.module.html +++ b/archive/v0.1/mithril.module.html @@ -72,11 +72,11 @@

You can make anonymous modules out of existing classes

//controller class
 var dashboardController = function() {
-        this.greeting = "Hello";
+    this.greeting = "Hello";
 };
 
 //view class
-var dashboardView = function() {
+var dashboardView = function(ctrl) {
     return m("h1", ctrl.greeting);
 };
 
@@ -88,11 +88,11 @@ var dashboard = {}
 
 //controller class
 dashboard.controller = function() {
-        this.greeting = "Hello";
+    this.greeting = "Hello";
 };
 
 //view class
-dashboard.view = function() {
+dashboard.view = function(ctrl) {
     return m("h1", ctrl.greeting);
 };