Merge branch 'next' of github.com:lhorie/mithril.js into next

This commit is contained in:
Barney Carroll 2015-01-06 19:37:01 +00:00
commit d874748c6f
138 changed files with 23884 additions and 94 deletions

View file

@ -34,3 +34,13 @@ To run the execution time tests below, click on their respective links, run the
</div>
Feel free to implement versions of the tests above in other frameworks, if you wish. The code is very simple.
---
### TodoMVC Benchmark
There's a TodoMVC benchmark with a variety of popular and obscure frameworks here:
[http://matt-esch.github.io/mercury-perf/](http://matt-esch.github.io/mercury-perf/)
The benchmark consists of creating 100 todos, marking them as completed, and then deleting them. It aims to give an idea of how frameworks perform under real-world-ish conditions running idiomatic code (as opposed to micro-benchmarks, which tend to take advantage of obscure tricks and aggressive optimizations that sacrifice maintainability for extra speed).

View file

@ -1,5 +1,28 @@
## Change Log
[v0.1.28](/mithril/archive/v0.1.28) - maintenance
### News:
- Landed some performance improvements
### Bug Fixes:
- throw error if root element is null in m.module/m.route [#388](https://github.com/lhorie/mithril.js/issues/388)
---
[v0.1.27](/mithril/archive/v0.1.27) - maintenance
### Bug Fixes:
- prevent strategy("none") event contamination [#378](https://github.com/lhorie/mithril.js/issues/378)
- fix equality strictness [#379](https://github.com/lhorie/mithril.js/issues/379)
- fix keys bug when list has nulls [#299](https://github.com/lhorie/mithril.js/issues/299)
- make sure empty value in option tag creates attribute [#380](https://github.com/lhorie/mithril.js/issues/380)
---
[v0.1.26](/mithril/archive/v0.1.26) - maintenance
### Bug Fixes:

View file

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Mithril</title>
<title><%= topic %>Mithril</title>
<link href="lib/prism/prism.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
</head>
@ -89,4 +89,4 @@
</footer>
<script src="lib/prism/prism.js"></script>
</body>
</html>
</html>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Mithril</title>
<title><%= topic %>Mithril</title>
<link href="lib/prism/prism.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
</head>
@ -59,4 +59,4 @@
</footer>
<script src="lib/prism/prism.js"></script>
</body>
</html>
</html>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Mithril</title>
<title><%= topic %>Mithril</title>
<link href="lib/prism/prism.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
</head>

View file

@ -82,10 +82,16 @@ var users = m.prop(deferred.promise)
users() // undefined
deferred.resolve("Hello")
users() // Hello
users.then(function(value) {
console.log(value) //Hello
})
//wait for next tick for Q's A+ compliant promise to actually resolve
setTimeout(function() {
users() // Hello
users.then(function(value) {
console.log(value) //Hello
})
}, 1000)
```
---