From fdada4133cb2f69a8c6a25dd019ae2cd44beed7e Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Sat, 17 May 2014 19:08:57 -0700 Subject: [PATCH] widgets: small string and comment changes --- reactornado/widgets.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactornado/widgets.js b/reactornado/widgets.js index 4565eba..16a9d4d 100644 --- a/reactornado/widgets.js +++ b/reactornado/widgets.js @@ -12,7 +12,7 @@ var LoginForm = React.createClass({ }; }, handleLogin: function () { - console.log("Imma log in now"); + console.log("Logging in " + this.state.protocol + ":" + this.state.username); window.Dispatcher.send_msg("accounts", "create_account", this.state); this.setState(this.getInitialState()); }, @@ -58,9 +58,11 @@ var BuddyListItem = React.createClass({ }); var BuddyList = React.createClass({ + // buddy state is a dictionary buid -> {proto, account, buddy, status, bicon_url} getInitialState: function () { - return {"buddies": []}; + return {"buddies": [] }; }, + // TODO: move handleBlistMessage to this class from dispatcher onChange: function(newData) { // parse out newData and convert to structure expected by widget var buddy_ids = Object.keys(newData); -- 2.39.2