From bef0cfe7fd901c3ef3888b7c045eb6b296d919f4 Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Sat, 15 Mar 2014 11:10:15 -0600 Subject: [PATCH] chore(gulp): fix strip-debug task --- gulpfile.js | 2 +- js/ext/angular/src/directive/ionicNavAnimation.js | 2 ++ js/ext/angular/src/directive/ionicRadio.js | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8b9c6288ee2..e692dbcd207 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -125,7 +125,7 @@ gulp.task('scripts', function() { gulp.task('scripts-ng', function() { return gulp.src(buildConfig.angularIonicFiles) - .pipe(gulpif(IS_RELEASE_BUILD, stripDebug())) + // .pipe(gulpif(IS_RELEASE_BUILD, stripDebug())) .pipe(concat('ionic-angular.js')) .pipe(header(banner)) .pipe(gulp.dest(buildConfig.distJs)) diff --git a/js/ext/angular/src/directive/ionicNavAnimation.js b/js/ext/angular/src/directive/ionicNavAnimation.js index 2b2426b5f37..f573f355a58 100644 --- a/js/ext/angular/src/directive/ionicNavAnimation.js +++ b/js/ext/angular/src/directive/ionicNavAnimation.js @@ -1,3 +1,4 @@ +(function() { angular.module('ionic.ui.navAnimation', []) /** * @ngdoc directive @@ -39,3 +40,4 @@ angular.module('ionic.ui.navAnimation', []) } }; }); +})(); diff --git a/js/ext/angular/src/directive/ionicRadio.js b/js/ext/angular/src/directive/ionicRadio.js index 934edcc601a..f1c2a315be7 100644 --- a/js/ext/angular/src/directive/ionicRadio.js +++ b/js/ext/angular/src/directive/ionicRadio.js @@ -101,7 +101,6 @@ angular.module('ionic.ui.radio', []) if(!ngModel || !radioButtons) { return; } var setIt = function() { - console.log('SET'); $element.addClass('active'); ngModel.$setViewValue($scope.$eval($attr.ngValue)); @@ -109,7 +108,6 @@ angular.module('ionic.ui.radio', []) }; var clickHandler = function(e) { - console.log('CLICK'); setIt(); };