From d478f7917b3c0bacdffb6c223f950768aa48e975 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 26 Oct 2017 14:26:06 +0800 Subject: [PATCH] es6: fix setters example --- es6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es6.md b/es6.md index 4cfcc4b99..45253eabf 100644 --- a/es6.md +++ b/es6.md @@ -410,7 +410,7 @@ const App = { return this.status === 'closed' }, set closed (value) { - this.status === value ? 'closed' : 'open' + this.status = value ? 'closed' : 'open' } } ```