format/jshint favourites.js

v1.18.x
psychobunny 12 years ago
parent c69e30c146
commit cf4ba9d1d3

@ -2,7 +2,7 @@
"indent_size": 4,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"indent_with_tabs": true,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"jslint_happy": true,

@ -3,6 +3,7 @@ var RDB = require('./redis.js'),
user = require('./user.js');
(function (Favourites) {
"use strict";
Favourites.favourite = function (pid, room_id, uid, socket) {
if (uid === 0) {
@ -107,8 +108,9 @@ var RDB = require('./redis.js'),
data[post_id] = hasFavourited;
loaded++;
if (loaded === pids.length)
if (loaded === pids.length) {
callback(data);
}
});
}(pids[i]));
}

Loading…
Cancel
Save