};
},
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());
},
});
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);