Skip to content

Commit

Permalink
Merge pull request facebook#4 from pieterv/example-cleanup
Browse files Browse the repository at this point in the history
Minor flux-chat example code cleanup
  • Loading branch information
fisherwebdev committed Jul 27, 2014
2 parents 780db24 + 94f15f0 commit 1027d6d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions examples/flux-chat/js/constants/ChatConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* A singleton that operates as the central hub for application updates.
*/

var keyMirror = require('react/lib/keyMirror');
Expand Down
2 changes: 1 addition & 1 deletion examples/flux-chat/js/stores/MessageStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function _markAllInThreadRead(threadID) {
if (_messages[id].threadID === threadID) {
_messages[id].isRead = true;
}
};
}
}

var MessageStore = merge(EventEmitter.prototype, {
Expand Down
3 changes: 1 addition & 2 deletions examples/flux-chat/js/stores/ThreadStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var ChatAppDispatcher = require('../dispatcher/ChatAppDispatcher');
var ChatConstants = require('../constants/ChatConstants');
var ChatMessageUtils = require('../utils/ChatMessageUtils');
var EventEmitter = require('events').EventEmitter;
var MessageStore = require('../stores/MessageStore');
var merge = require('react/lib/merge');

var ActionTypes = ChatConstants.ActionTypes;
Expand Down Expand Up @@ -83,7 +82,7 @@ var ThreadStore = merge(EventEmitter.prototype, {
getAllChrono: function() {
var orderedThreads = [];
for (var id in _threads) {
thread = _threads[id];
var thread = _threads[id];
orderedThreads.push(thread);
}
orderedThreads.sort(function(a, b) {
Expand Down
2 changes: 1 addition & 1 deletion examples/flux-chat/js/stores/UnreadThreadStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var UnreadThreadStore = merge(EventEmitter.prototype, {
}
}
return unreadCount;
},
}

});

Expand Down

0 comments on commit 1027d6d

Please sign in to comment.