1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-08-13 17:03:51 -04:00

Remove some old console logs

This commit is contained in:
Lance Stout 2014-01-05 03:10:57 -08:00
parent 2de5116ada
commit 4c3d3fee3e
6 changed files with 9 additions and 8 deletions

View File

@ -33,7 +33,6 @@ module.exports = function (jid, id, type, source, cb) {
}
resp = resp.toJSON();
console.log(JSON.stringify(resp));
type = resp.vCardTemp.photo.type || type;
var data = resp.vCardTemp.photo.data;

View File

@ -167,9 +167,15 @@ module.exports = function (client, app) {
pres.status = pres.status || '';
pres.priority = pres.priority || 0;
var resource = contact.resources.get(pres.from);
if (resource) {
pres.from = pres.from.full;
// Explicitly set idleSince to null to clear
// the model's value.
if (!pres.idleSince) {
pres.idleSince = null;
}
resource.set(pres);
} else {
resource = new Resource(pres);
@ -318,14 +324,11 @@ module.exports = function (client, app) {
client.on('receipt', function (msg) {
msg = msg.toJSON();
console.log(msg);
var contact = me.getContact(msg.from, msg.to);
console.log(contact);
if (!contact) return;
var original = Message.idLookup(msg.to[msg.type === 'groupchat' ? 'full' : 'bare'], msg.receipt);
console.log(original);
if (!original) return;

View File

@ -13,7 +13,7 @@ module.exports = HumanModel.define({
show: ['string', true, ''],
priority: ['number', true, 0],
chatState: ['string', true, 'gone'],
idleSince: 'date',
idleSince: ['date', false, undefined],
discoInfo: 'object',
timezoneOffset: 'number'
},

View File

@ -61,7 +61,6 @@ module.exports = HumanView.extend({
handleEmbedClick: function (e) {
if (e.shiftKey) {
e.preventDefault();
console.log(e);
$(e.currentTarget).toggleClass('collapsed');
}
},

View File

@ -1,6 +1,6 @@
{
"name": "otalk.im",
"version": "0.0.2",
"version": "0.0.3",
"description": "Otalk: WebRTC Enabled XMPP Client, in the Browser",
"repository": {
"type": "git",

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# 0.0.1 1388917749028
# 0.0.3 1388920243107
CACHE:
/app.js