From e61100e368aa51c4bd82c753465de87571adb0d5 Mon Sep 17 00:00:00 2001 From: Thomas Collardeau Date: Thu, 7 May 2015 18:54:24 +0200 Subject: [PATCH] make more es6 --- app/actions/listActions.js | 2 +- app/utils/authUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions/listActions.js b/app/actions/listActions.js index 1afd907..1bb241f 100644 --- a/app/actions/listActions.js +++ b/app/actions/listActions.js @@ -6,7 +6,7 @@ let storage = firebaseUtils.homeInstance().child('public').child('list'); let listActions = { getList(list) { - storage.on('value', function(snapshot){ + storage.on('value', (snapshot) => { AppDispatcher.handleAction({ actionType: appConstants.GET_DATA, data: { diff --git a/app/utils/authUtils.js b/app/utils/authUtils.js index e314414..c0625ee 100644 --- a/app/utils/authUtils.js +++ b/app/utils/authUtils.js @@ -3,7 +3,7 @@ const appConstants = require('../constants/appConstants'); let hasher = require('hasher'); let ref = new Firebase(appConstants.FIREBASE_HOST); -let addNewUserToFB = function(newUser){ +let addNewUserToFB = (newUser) => { ref.child('user').child(newUser.uid).child("info").set(newUser); };