removing a few console.logs

This commit is contained in:
Sacha Greif 2014-06-25 14:33:41 +09:00
parent a2f0b69834
commit 77d572345b
6 changed files with 9 additions and 9 deletions

View file

@ -44,7 +44,7 @@ UI.registerHelper('isAdmin', function(showError) {
UI.registerHelper('canEdit', function(collectionName, item, action) {
var action = (typeof action !== 'string') ? null : action;
var collection = (typeof collectionName !== 'string') ? Posts : eval(collectionName);
console.log(item);
// console.log(item);
// var itemId = (collectionName==="Posts") ? Session.get('selectedPostId') : Session.get('selectedCommentId');
// var item=collection.findOne(itemId);
return item && canEdit(Meteor.user(), item, action);

View file

@ -110,7 +110,7 @@ Template.post_edit.events({
};
properties = _.extend(properties, adminProperties);
}
console.log(properties)
// console.log(properties)
Posts.update(post._id,{
$set: properties

View file

@ -70,7 +70,7 @@ Template.post_submit.events({
properties.submitted = new Date(submitted);
}
console.log(properties)
// console.log(properties)
Meteor.call('post', properties, function(error, post) {
if(error){

View file

@ -174,7 +174,7 @@ Meteor.methods({
post.submitted = submitted;
}
console.log(post)
// console.log(post)
postId = Posts.insert(post);

View file

@ -1,5 +1,5 @@
trackEvent = function(event, properties){
console.log('trackevent: ', event, properties);
// console.log('trackevent: ', event, properties);
var properties= (typeof properties === 'undefined') ? {} : properties;
//TODO
// add event to an Events collection for logging and buffering purposes

View file

@ -53,7 +53,7 @@
});
}
}
console.log(collection.findOne(item._id));
// console.log(collection.findOne(item._id));
return true;
};
@ -83,7 +83,7 @@
if (item.userId != user._id)
modifyKarma(item.userId, votePower);
console.log(collection.findOne(item._id));
// console.log(collection.findOne(item._id));
return true;
};
@ -110,7 +110,7 @@
if (item.userId != user._id)
modifyKarma(item.userId, votePower);
console.log(collection.findOne(item._id));
// console.log(collection.findOne(item._id));
return true;
};
@ -137,7 +137,7 @@
if (item.userId != user._id)
modifyKarma(item.userId, votePower);
console.log(collection.findOne(item._id));
// console.log(collection.findOne(item._id));
return true;
};