From 0c52fd2673ee44964e8f27a439c3088d3cffa0be Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Thu, 13 Feb 2014 12:28:44 -0500 Subject: [PATCH] chore(travis): remove console.log from *all* ionic js files Closes #586 --- Gruntfile.js | 13 +++++++------ js/utils/keyboard.js | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index e838de7ac5c..5f792f386d8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -74,13 +74,14 @@ module.exports = function(grunt) { 'removelogging': { dist: { - files: { - 'dist/js/ionic.js': 'dist/js/ionic.js', - 'dist/js/ionic.bundle.js': 'dist/js/ionic.bundle.js', - 'dist/js/ionic-angular.js': 'dist/js/ionic-angular.js' - }, + files: [{ + expand: true, + cwd: 'dist/js/', + src: ['*.js'], + dest: '.' + }], options: { - methods: 'log assert count clear group groupEnd groupCollapsed trace debug dir dirxml profile profileEnd time timeEnd timeStamp table exception'.split(' ') + methods: 'log info assert count clear group groupEnd groupCollapsed trace debug dir dirxml profile profileEnd time timeEnd timeStamp table exception'.split(' ') } } }, diff --git a/js/utils/keyboard.js b/js/utils/keyboard.js index a1c3e01240e..f665e3f0a92 100644 --- a/js/utils/keyboard.js +++ b/js/utils/keyboard.js @@ -19,8 +19,7 @@ function androidKeyboardFix() { if (rememberedDeviceWidth !== window.innerWidth) { rememberedDeviceWidth = window.innerWidth; rememberedDeviceHeight = window.innerHeight; - console.info('orientation change. deviceWidth =', rememberedDeviceWidth, - ', deviceHeight =', rememberedDeviceHeight); + console.info('orientation change. deviceWidth =', rememberedDeviceWidth, ', deviceHeight =', rememberedDeviceHeight); //If the height changes, and it's less than before, we have a keyboard open } else if (rememberedDeviceHeight !== window.innerHeight &&