) {
- Komponent.create(document.body!!, TodoApp(), true)
+ Komponent.create(document.body!!, TodoApp(), true)
- val el1 = document.create.div {
- div {
- div {
- id = "id1"
- span {
- +"Test"
- }
- }
+ val el1 = document.create.div {
+ div {
+ div {
+ id = "id1"
+ span {
+ +"Test"
}
+ }
}
+ }
- val el2 = document.create.div {
- div {
- id = "id1"
- span {
- +"Test"
- }
- input {
- name = "bla"
- }
- }
+ val el2 = document.create.div {
+ div {
+ id = "id1"
+ span {
+ +"Test"
+ }
+ input {
+ name = "bla"
+ }
}
+ }
- // println("equals ${DomDiffer.match(el1, el2)}")
+ // println("equals ${DomDiffer.match(el1, el2)}")
- console.log("OLD", el1)
- console.log("NEW", el2)
+ console.log("OLD", el1)
+ console.log("NEW", el2)
- DomDiffer.replaceDiff(el2, el1)
+ DomDiffer.replaceDiff(el2, el1)
- console.log("OLD", el1)
- console.log("NEW", el2)
+ console.log("OLD", el1)
+ console.log("NEW", el2)
}
diff --git a/web/index_dev.html b/web/index_dev.html
index dc573d5..1e997e2 100644
--- a/web/index_dev.html
+++ b/web/index_dev.html
@@ -12,9 +12,9 @@
Compare other javascript MVC* frameworks with TodoMVC
-
-
-
-
+
+
+
+