From 20dfbbadc6460e9e838e39935c5e8b288a14cd76 Mon Sep 17 00:00:00 2001 From: Demian Ferreiro Date: Fri, 27 May 2016 11:08:47 -0300 Subject: [PATCH 1/2] Update mithril.request.md Add call to promise returned by m.request(). Otherwise the value of `ctrl.user` will always be truthy. --- docs/mithril.request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mithril.request.md b/docs/mithril.request.md index fb29d28e..b6d071c7 100644 --- a/docs/mithril.request.md +++ b/docs/mithril.request.md @@ -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" ]) } ``` From 3f4df52d6ed010d93d3f4f77f3c3fb6ba639fb7f Mon Sep 17 00:00:00 2001 From: Bohdan Shtepan Date: Mon, 30 May 2016 20:54:18 +0300 Subject: [PATCH 2/2] Fixes js.org badge link. I believe js.org badge goes to the wrong location. So I changed it from *js.org* to *mithril.js.org/*. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c04e8a82..6919baee 100644 --- a/README.md +++ b/README.md @@ -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)