Skip to content

Commit

Permalink
Got rid of some console.log()s that were in the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Hawryluk committed May 16, 2012
1 parent d55e7f8 commit 77660a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion shared/js/frequency-decoder.com/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ var fdSliderController = (function() {
maxPx = vertical ? sH - hH : sW - hW;
stepPx = maxPx / steps;
deltaPx = maxPx / Math.ceil(range / maxInc);
console.log(maxInc)


sliderW = sW;
sliderH = sH;
Expand Down
8 changes: 4 additions & 4 deletions shared/js/html5Forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ var html5Forms = new function () {
}
var message = me.getAttributeValue(node, 'data-errormessage');
node.setCustomValidity(message)
console.log('set custom validity')
//console.log('set custom validity')
}

function clearMessageIfValidEvent (event) {
console.log(event.type)
//console.log(event.type)
var node = event.currentTarget || event.srcElement;
clearMessageIfValid(node);
}
Expand All @@ -240,13 +240,13 @@ var html5Forms = new function () {
node.setCustomValidity('');
if (!node.checkValidity()) {
showCustomMessage(node);
console.log('invalid')
//console.log('invalid')
if (document.addEventListener) {
globalEvent.initEvent('invalid', true, true); // event type,bubbling,cancelable
node.dispatchEvent(globalEvent);
}
} else {
console.log('valid')
//console.log('valid')
}
}

Expand Down
4 changes: 2 additions & 2 deletions shared/js/weston.ruter.net/webforms2/webforms2_src.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ $wf2 = {
var maxBottom = $wf2.css.getScrollY() + $wf2.css.getWindowHeight();
var errorMsgHeight = $wf2.invalidIndicators[0].errorMsg.offsetHeight;

console.log(elPos.y + errorMsgHeight, maxBottom)
//console.log(elPos.y + errorMsgHeight, maxBottom)
//NOTE: We should only do this if the control's style.bottom == 0
if (doScroll && elPos.y + errorMsgHeight > maxBottom) {

Expand Down Expand Up @@ -1176,7 +1176,7 @@ $wf2 = {

/* Webkit browsers need this */
if (!$wf2.hasNativeBubbles || (node.form && $wf2.getAttributeValue(node.form, 'data-webforms2-force-js-validation') == 'true')) {
console.log(node.name)
//console.log(node.name)
if (node.type == 'submit' || node.type == 'button') {

node.formNoValidate=true;
Expand Down

0 comments on commit 77660a6

Please sign in to comment.