]> git.zarvox.org Git - imoo.git/commitdiff
widgets: small string and comment changes
authorDrew Fisher <drew.m.fisher@gmail.com>
Sun, 18 May 2014 02:08:57 +0000 (19:08 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Sun, 18 May 2014 05:26:14 +0000 (22:26 -0700)
reactornado/widgets.js

index 4565ebaafd95b559e718d13ed87c851696af243b..16a9d4dfff03ff8a508cfa0410ed2ee51d8340ad 100644 (file)
@@ -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);