Cleaned up noisy logs and debugs

This commit is contained in:
Thaum
2015-04-08 10:08:24 +00:00
parent 3eced2e314
commit 3fbd6d279a
6 changed files with 2 additions and 9 deletions

View File

@@ -88,7 +88,6 @@ this.GlobalUI = (function() {
};
GlobalUI.popStateHandler = function(e){
console.log();
var state = e.originalEvent.state;
if(state) {
if(state.detail === "closed"){

View File

@@ -15,7 +15,6 @@ Template.containerDialog.events({
},
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
"change #containerNameInput, input #containerNameInput": function(event){
console.log("changed Nameinput");
var name = Template.instance().find("#containerNameInput").value;
Containers.update(this._id, {$set: {name: name}});
},

View File

@@ -74,7 +74,6 @@ Template.inventory.helpers({
Template.inventory.events({
"tap #addItem": function(event){
var charId = this._id;
console.log(charId);
Items.insert({
charId: charId,
parent:{
@@ -82,7 +81,7 @@ Template.inventory.events({
collection: "Characters"
}
}, function(err, itemId){
if(err) console.log(err);
if(err) throw err;
GlobalUI.setDetail({
template: "itemDialog",
data: {itemId: itemId, charId: charId},

View File

@@ -25,7 +25,6 @@ Template.itemDialog.events({
},
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
"change #itemNameInput": function(event){
console.log("changed Nameinput");
var name = Template.instance().find("#itemNameInput").value;
Items.update(this._id, {$set: {name: name}});
},

View File

@@ -11,14 +11,12 @@ Template.home.helpers({
Template.home.events({
"tap .characterCard": function(event, instance){
console.log(this);
Router.go("characterSheet", {_id: this._id});
},
"tap #addCharacter": function (event, template) {
Characters.insert({owner: Meteor.userId()});
},
"tap #deleteChar": function(event, template){
console.log("deleting", this);
Characters.remove(this._id);
}
});
});

View File

@@ -1,2 +1 @@
Schemas = {};
SimpleSchema.debug = true