From 9e51a366e7587b22448e81e16fcd024cf6ddbdcb Mon Sep 17 00:00:00 2001 From: Shashanka Nataraj Date: Wed, 8 Feb 2017 00:27:12 +0530 Subject: [PATCH] Removed unneeded inner `bind(this)` (#122) The inner bind is useless create-react-apps 'default webpack config was what pointed out this issue. --- examples/todoApp/js/todoAppFirebaseExplicit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/todoApp/js/todoAppFirebaseExplicit.js b/examples/todoApp/js/todoAppFirebaseExplicit.js index df65ce9..eebe029 100644 --- a/examples/todoApp/js/todoAppFirebaseExplicit.js +++ b/examples/todoApp/js/todoAppFirebaseExplicit.js @@ -32,7 +32,7 @@ var TodoApp2 = React.createClass({ var item = childSnapshot.val(); item['.key'] = childSnapshot.key; items.push(item); - }.bind(this)); + }); this.setState({ items: items