From 3fbd6d279a4d08e72fdc0ffea51c8c70a5f58299 Mon Sep 17 00:00:00 2001 From: Thaum Date: Wed, 8 Apr 2015 10:08:24 +0000 Subject: [PATCH] Cleaned up noisy logs and debugs --- rpg-docs/client/globalHelpers/GlobalUI.js | 1 - .../character/inventory/containerDialog/containerDialog.js | 1 - rpg-docs/client/views/character/inventory/inventory.js | 3 +-- .../client/views/character/inventory/itemDialog/itemDialog.js | 1 - rpg-docs/client/views/home/home.js | 4 +--- rpg-docs/lib/constants/Schemas.js | 1 - 6 files changed, 2 insertions(+), 9 deletions(-) diff --git a/rpg-docs/client/globalHelpers/GlobalUI.js b/rpg-docs/client/globalHelpers/GlobalUI.js index 2bb2f512..b47fe49a 100644 --- a/rpg-docs/client/globalHelpers/GlobalUI.js +++ b/rpg-docs/client/globalHelpers/GlobalUI.js @@ -88,7 +88,6 @@ this.GlobalUI = (function() { }; GlobalUI.popStateHandler = function(e){ - console.log(); var state = e.originalEvent.state; if(state) { if(state.detail === "closed"){ diff --git a/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js b/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js index 44f7c785..7e112f42 100644 --- a/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js +++ b/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js @@ -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}}); }, diff --git a/rpg-docs/client/views/character/inventory/inventory.js b/rpg-docs/client/views/character/inventory/inventory.js index 15aa8a49..65575356 100644 --- a/rpg-docs/client/views/character/inventory/inventory.js +++ b/rpg-docs/client/views/character/inventory/inventory.js @@ -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}, diff --git a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js index dd62da47..752b9d08 100644 --- a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js +++ b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js @@ -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}}); }, diff --git a/rpg-docs/client/views/home/home.js b/rpg-docs/client/views/home/home.js index 41dda9d6..74fc5bcb 100644 --- a/rpg-docs/client/views/home/home.js +++ b/rpg-docs/client/views/home/home.js @@ -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); } -}); \ No newline at end of file +}); diff --git a/rpg-docs/lib/constants/Schemas.js b/rpg-docs/lib/constants/Schemas.js index 68d83f0e..c4599128 100644 --- a/rpg-docs/lib/constants/Schemas.js +++ b/rpg-docs/lib/constants/Schemas.js @@ -1,2 +1 @@ Schemas = {}; -SimpleSchema.debug = true \ No newline at end of file