Removed logging

This commit is contained in:
Tobias Reich 2014-04-01 22:45:22 +02:00
parent 02e77b8aea
commit cdd5abcdd8
2 changed files with 2 additions and 7 deletions

View File

@ -13,8 +13,6 @@ swipe = {
start: function(obj, tolerance) { start: function(obj, tolerance) {
console.log('start with ' + obj);
if (obj) swipe.obj = obj; if (obj) swipe.obj = obj;
if (tolerance) swipe.tolerance = tolerance; if (tolerance) swipe.tolerance = tolerance;
@ -24,8 +22,6 @@ swipe = {
move: function(e) { move: function(e) {
console.log(e);
if (swipe.obj===null) return false; if (swipe.obj===null) return false;
swipe.offset = -1 * e.x; swipe.offset = -1 * e.x;
@ -45,7 +41,6 @@ swipe = {
if (e.x<=-swipe.tolerance) left(true); if (e.x<=-swipe.tolerance) left(true);
else if (e.x>=swipe.tolerance) right(true); else if (e.x>=swipe.tolerance) right(true);
else if (swipe.obj!==null) { else if (swipe.obj!==null) {
console.log('reset');
swipe.obj.css({ swipe.obj.css({
WebkitTransform: 'translateX(0px)', WebkitTransform: 'translateX(0px)',
MozTransform: 'translateX(0px)', MozTransform: 'translateX(0px)',

File diff suppressed because one or more lines are too long