From 954ae7a08a6babbfccb6cefb7628df65d2bbbb40 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 25 Feb 2016 12:05:06 -0500 Subject: [PATCH] FIX: Can't shadow `cooked` in strict mode (Safari) --- .../javascripts/discourse/widgets/decorator-helper.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/decorator-helper.js.es6 b/app/assets/javascripts/discourse/widgets/decorator-helper.js.es6 index 53ba38e87d6..6ea4eb7d2bc 100644 --- a/app/assets/javascripts/discourse/widgets/decorator-helper.js.es6 +++ b/app/assets/javascripts/discourse/widgets/decorator-helper.js.es6 @@ -63,8 +63,8 @@ class DecoratorHelper { * return helper.cooked(`

Cook me

`); * ``` **/ - cooked(cooked) { - return new PostCooked({ cooked }); + cooked(cookedText) { + return new PostCooked({ cookedText }); } /**