diff --git a/archive/v0.1/mithril.html b/archive/v0.1/mithril.html index e6b6cfb3..13008181 100644 --- a/archive/v0.1/mithril.html +++ b/archive/v0.1/mithril.html @@ -182,7 +182,7 @@ m("a[href='/dashboard']", {config: m.route}, "Dashboard&q where: VirtualElement :: Object { String tag, Attributes attributes, Children children } - Attributes :: Object<any | void config(DOMElement element, Boolean isNew)> + Attributes :: Object<any | void config(DOMElement element, Boolean isInitialized)> Children :: String text | Array<String text | VirtualElement virtualElement | Children children>
String selector
@@ -216,7 +216,7 @@ where:{ style: {border: "1px solid red"} }
config attributevoid config(DOMElement element, Boolean isNew) (optional)
+void config(DOMElement element, Boolean isInitialized) (optional)
You can define a non-HTML-standard attribute called config. This special parameter allows you to call methods on the DOM element after it gets created.
This is useful, for example, if you declare a canvas element and want to use the Javascript API to draw:
function draw(element, isInitialized) { diff --git a/archive/v0.1/mithril.min.zip b/archive/v0.1/mithril.min.zip index fdac4dc0..f6043429 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.route.html b/archive/v0.1/mithril.route.html index 4861d5b3..f7cc809b 100644 --- a/archive/v0.1/mithril.route.html +++ b/archive/v0.1/mithril.route.html @@ -195,7 +195,7 @@ m("a[href='/dashboard/alicesmith']", {config: m.route});Signature
-+void route(DOMElement element, Boolean isNew)void route(DOMElement element, Boolean isInitialized)
DOMElement element
an anchor element <a> with an href attribute that points to a route