diff --git a/archive/v0.1/mithril.min.zip b/archive/v0.1/mithril.min.zip index 0b733d77..74e7ba54 100644 Binary files a/archive/v0.1/mithril.min.zip and b/archive/v0.1/mithril.min.zip differ 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);
};