Reduce js console logging

This commit is contained in:
Dennis Eichhorn 2017-11-11 11:27:49 +01:00
parent 9cf5df977f
commit 954aa70704
6 changed files with 2 additions and 24 deletions

View File

@ -94,7 +94,6 @@
*/
jsOMS.Auth.Auth.prototype.loginResult = function (xhr)
{
console.log(xhr);
location.reload();
};
}(window.jsOMS = window.jsOMS || {}));

View File

@ -30,7 +30,7 @@
// todo: create log;
this.result[0] = function ()
{
console.log('invalid response');
//console.log('invalid response');
};
/** global: XMLHttpRequest */
@ -363,7 +363,6 @@
break;
default:
// todo: create handler for error returns
console.log(self.xhr);
}
};

View File

@ -92,8 +92,6 @@
if(hasSelector) {
this.app.eventManager.attach(e.id + 'childList', function(data) {
console.log(data);
const length = data.addedNodes.length;
for(let j = 0; j < length; j++) {
@ -105,9 +103,7 @@
});
}
this.app.eventManager.attach(e.id + 'attributes', function(data) {
console.log(data);
});
this.app.eventManager.attach(e.id + 'attributes', function(data) {});
this.app.uiManager.getDOMObserver().observe(e, observeConfig);
}

View File

@ -119,7 +119,6 @@
for (let k = 0; k < responseLength; k++) {
tempResponse = response.getByIndex(k);
console.log(tempResponse);
let option = null,
data = tempResponse.getData(),

View File

@ -71,8 +71,6 @@
const element = document.getElementById(id),
self = this;
console.log(id);
if(!element) {
return;
}
@ -82,38 +80,29 @@
self.dragging = this;
e.dataTransfer.effectAllowed = 'move';
e.dataTransfer.setData('text/html', this.innerHTML);
console.log(self.dragging);
}
console.log('drag start');
}, false);
element.addEventListener('dragenter', function(e) {
// todo: highlight
console.log('drag enter');
}, false);
element.addEventListener('dragover', function(e) {
e.preventDefault();
e.dataTransfer.dropEffect = 'move';
console.log('drag over');
}, false);
element.addEventListener('dragleave', function(e) {
e.preventDefault();
// todo: don't highlight
console.log('drag leave');
}, false);
element.addEventListener('dragend', function(e) {
e.preventDefault();
// todo: reset all changes
console.log('drag end');
}, false);
//element.addEventListener('drag', function(e) {});
@ -130,7 +119,6 @@
// todo: add to now destination
// todo: remove from old destination
console.log('drag drop');
self.dragging = null;
}, false);

View File

@ -76,10 +76,7 @@
this.recognition.onresult = function(event) {
let result = jsOMS.trim(event.results[event.resultIndex][0].transcript);
console.log('.' + result + '.');
if(self.commands.hasOwnProperty(result)) {
console.log('found');
self.commands[result]();
}
};