Merge remote-tracking branch 'origin/next' into next

This commit is contained in:
Leo Horie 2016-06-01 15:42:32 -04:00
commit e48265dec8
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
[![JS.ORG](https://img.shields.io/badge/js.org-mithril-ffb400.svg?style=flat-square)](http://js.org)
[![JS.ORG](https://img.shields.io/badge/js.org-mithril-ffb400.svg?style=flat-square)](http://mithril.js.org/)
[![Join the chat at https://gitter.im/lhorie/mithril.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/lhorie/mithril.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/lhorie/mithril.js.svg?branch=master)](https://travis-ci.org/lhorie/mithril.js)

View file

@ -535,7 +535,7 @@ where:
demo.view = function(ctrl) {
return m("div", [
//in the first redraw, there's no user, so ensure we don't throw an error
ctrl.user ? ctrl.user.name : "no user"
ctrl.user() ? ctrl.user().name : "no user"
])
}
```