-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclient.js
45 lines (38 loc) · 945 Bytes
/
client.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Generated by CoffeeScript 1.6.2
var WIAfterUpdate;
smite(eval(s));
Unionize.connect = connect;
WIAfterUpdate = WI.after.update(function(userId, doc, fieldNames, modifier, options) {});
this.feedItems = React.createClass({
"getInitialState": function() {
return {
feeds: WI.findOne({
"_id": user
})
};
},
"componentDidMount": function() {
var self;
self = this;
return Tracker.autorun(function() {
var feed;
feed = WI.findOne({
"_id": user
});
return self.setState({
"feeds": feed
});
});
},
"render": function() {
var feedsList, sending;
feedsList = [];
if (this.state.feeds && this.state.feeds.sending) {
sending = this.state.feeds.sending;
feedsList = sending.map(function(feed) {
return React.DOM.div(null, {}, feed.from + feed.to);
});
}
return React.DOM.div(null, feedsList);
}
});