diff --git a/js/angular/controller/refresherController.js b/js/angular/controller/refresherController.js
index f5d3f42d47..86c34e3953 100644
--- a/js/angular/controller/refresherController.js
+++ b/js/angular/controller/refresherController.js
@@ -115,7 +115,7 @@ IonicModule
isDragging = true;
// overscroll according to the user's drag so far
- overscroll(parseInt((deltaY - dragOffset)/3, 10));
+ overscroll(parseInt((deltaY - dragOffset) / 3, 10));
// update the icon accordingly
if (!activated && lastOverscroll > ptrThreshold) {
diff --git a/js/angular/controller/spinnerController.js b/js/angular/controller/spinnerController.js
index 570a8140b4..93f3d3e8cf 100644
--- a/js/angular/controller/spinnerController.js
+++ b/js/angular/controller/spinnerController.js
@@ -74,7 +74,7 @@
return {
y1: spinnerName == 'ios' ? 17 : 12,
y2: spinnerName == 'ios' ? 29 : 20,
- t: TRANSLATE32 + ' rotate(' + (30 * i + (i < 6 ? 180: -180)) + ')',
+ t: TRANSLATE32 + ' rotate(' + (30 * i + (i < 6 ? 180 : -180)) + ')',
a: [{
fn: function() {
return {
@@ -380,9 +380,9 @@
function easeInOutCubic(t, c) {
t /= c / 2;
- if (t < 1) return 1/2*t*t*t;
+ if (t < 1) return 1 / 2 * t * t * t;
t -= 2;
- return 1/2*(t*t*t + 2);
+ return 1 / 2 * (t * t * t + 2);
}
@@ -404,7 +404,7 @@
var container = document.createElement('div');
createSvgElement('svg', {
viewBox: '0 0 64 64',
- g: [ spinners[spinnerName] ]
+ g: [spinners[spinnerName]]
}, container, spinnerName);
// Specifically for animations to work,
diff --git a/js/angular/directive/exposeAsideWhen.js b/js/angular/directive/exposeAsideWhen.js
index eef74b11c7..8cef9b3692 100644
--- a/js/angular/directive/exposeAsideWhen.js
+++ b/js/angular/directive/exposeAsideWhen.js
@@ -48,7 +48,7 @@ IonicModule
function checkAsideExpose() {
var mq = $attr.exposeAsideWhen == 'large' ? '(min-width:768px)' : $attr.exposeAsideWhen;
- sideMenuCtrl.exposeAside( $window.matchMedia(mq).matches );
+ sideMenuCtrl.exposeAside($window.matchMedia(mq).matches);
sideMenuCtrl.activeAsideResizing(false);
}
@@ -58,9 +58,7 @@ IonicModule
}
var debouncedCheck = ionic.debounce(function() {
- $scope.$apply(function(){
- checkAsideExpose();
- });
+ $scope.$apply(checkAsideExpose);
}, 300, false);
checkAsideExpose();
diff --git a/js/angular/directive/keyboardAttach.js b/js/angular/directive/keyboardAttach.js
index ab049bd6cf..2d4b4a15d3 100644
--- a/js/angular/directive/keyboardAttach.js
+++ b/js/angular/directive/keyboardAttach.js
@@ -49,7 +49,7 @@ IonicModule
var keyboardHeight = e.keyboardHeight || e.detail.keyboardHeight;
element.css('bottom', keyboardHeight + "px");
scrollCtrl = element.controller('$ionicScroll');
- if ( scrollCtrl ) {
+ if (scrollCtrl) {
scrollCtrl.scrollView.__container.style.bottom = keyboardHeight + keyboardAttachGetClientHeight(element[0]) + "px";
}
}
@@ -60,7 +60,7 @@ IonicModule
}
element.css('bottom', '');
- if ( scrollCtrl ) {
+ if (scrollCtrl) {
scrollCtrl.scrollView.__container.style.bottom = '';
}
}
diff --git a/js/angular/directive/modal.js b/js/angular/directive/modal.js
index 6eb92b525c..b90da6f754 100644
--- a/js/angular/directive/modal.js
+++ b/js/angular/directive/modal.js
@@ -8,7 +8,7 @@ IonicModule
restrict: 'E',
transclude: true,
replace: true,
- controller: [function(){}],
+ controller: [function() {}],
template: '
'
diff --git a/js/angular/directive/radio.js b/js/angular/directive/radio.js
index 7b4e24c76c..e303996c00 100644
--- a/js/angular/directive/radio.js
+++ b/js/angular/directive/radio.js
@@ -15,7 +15,7 @@
* Choose B
* Choose C
* ```
- *
+ *
* @param {string=} name The name of the radio input.
* @param {expression=} value The value of the radio input.
* @param {boolean=} disabled The state of the radio input.
@@ -40,7 +40,10 @@ IonicModule
'',
compile: function(element, attr) {
- if(attr.icon) element.children().eq(2).removeClass('ion-checkmark').addClass(attr.icon);
+ if (attr.icon) {
+ element.children().eq(2).removeClass('ion-checkmark').addClass(attr.icon);
+ }
+
var input = element.find('input');
forEach({
'name': attr.name,
diff --git a/js/angular/directive/sideMenus.js b/js/angular/directive/sideMenus.js
index 9e92e8cc73..4d6e5f00ad 100644
--- a/js/angular/directive/sideMenus.js
+++ b/js/angular/directive/sideMenus.js
@@ -92,7 +92,7 @@ IonicModule
$ionicBody.enableClass(isAsideExposed, 'aside-open');
});
- $scope.$on('$ionicView.beforeEnter', function(ev, d){
+ $scope.$on('$ionicView.beforeEnter', function(ev, d) {
if (d.historyId) {
$scope.$activeHistoryId = d.historyId;
}
diff --git a/js/angular/directive/slideBox.js b/js/angular/directive/slideBox.js
index 8dec991f30..f216b690cf 100644
--- a/js/angular/directive/slideBox.js
+++ b/js/angular/directive/slideBox.js
@@ -87,7 +87,7 @@ function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory) {
slider.enableSlide($scope.$eval($attrs.disableScroll) !== true);
$scope.$watch('activeSlide', function(nv) {
- if(isDefined(nv)){
+ if (isDefined(nv)) {
slider.slide(nv);
}
});
@@ -134,7 +134,7 @@ function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory) {
link: function($scope, $element, $attr, slideBoxCtrl) {
// If the pager should show, append it to the slide box
- if($scope.$eval($scope.showPager) !== false) {
+ if ($scope.$eval($scope.showPager) !== false) {
var childScope = $scope.$new();
var pager = jqLite('');
$element.append(pager);
@@ -151,7 +151,7 @@ function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory) {
element.addClass('slider-slide');
return function($scope, $element, $attr) {
};
- },
+ }
};
})
@@ -165,8 +165,8 @@ function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory) {
var selectPage = function(index) {
var children = $element[0].children;
var length = children.length;
- for(var i = 0; i < length; i++) {
- if(i == index) {
+ for (var i = 0; i < length; i++) {
+ if (i == index) {
children[i].classList.add('active');
} else {
children[i].classList.remove('active');
diff --git a/js/angular/directive/toggle.js b/js/angular/directive/toggle.js
index 2757cc8d29..d80d508ad5 100644
--- a/js/angular/directive/toggle.js
+++ b/js/angular/directive/toggle.js
@@ -61,7 +61,7 @@ function($timeout, $ionicConfig) {
}
});
- if(attr.toggleClass) {
+ if (attr.toggleClass) {
element[0].getElementsByTagName('label')[0].classList.add(attr.toggleClass);
}
diff --git a/js/angular/service/bind.js b/js/angular/service/bind.js
index abd7937f3e..02b98b259e 100644
--- a/js/angular/service/bind.js
+++ b/js/angular/service/bind.js
@@ -13,7 +13,7 @@ IonicModule
parentGet,
unwatch;
- switch(mode) {
+ switch (mode) {
case '@':
if (!attrs[attrName]) {
return;
diff --git a/js/angular/service/loading.js b/js/angular/service/loading.js
index d0d1193f4d..f2924ad025 100644
--- a/js/angular/service/loading.js
+++ b/js/angular/service/loading.js
@@ -155,7 +155,7 @@ function($ionicLoadingConfig, $ionicBody, $ionicTemplateLoader, $ionicBackdrop,
if (self.isShown) {
self.element.addClass('visible');
ionic.requestAnimationFrame(function() {
- if(self.isShown) {
+ if (self.isShown) {
self.element.addClass('active');
$ionicBody.addClass('loading-active');
}
diff --git a/js/angular/service/sideMenuDelegate.js b/js/angular/service/sideMenuDelegate.js
index 81bf8bb474..5efd239fd8 100644
--- a/js/angular/service/sideMenuDelegate.js
+++ b/js/angular/service/sideMenuDelegate.js
@@ -99,7 +99,7 @@ IonicModule
* - If false or 0 is given, the edge drag threshold is disabled, and dragging from anywhere on the content is allowed.
* @returns {boolean} Whether the drag can start only from within the edge of screen threshold.
*/
- 'edgeDragThreshold',
+ 'edgeDragThreshold'
/**
* @ngdoc method
* @name $ionicSideMenuDelegate#$getByHandle
diff --git a/js/angular/service/slideBoxDelegate.js b/js/angular/service/slideBoxDelegate.js
index 682722ab70..934ffc52e8 100644
--- a/js/angular/service/slideBoxDelegate.js
+++ b/js/angular/service/slideBoxDelegate.js
@@ -99,7 +99,7 @@ IonicModule
*/
'slidesCount',
'count',
- 'loop',
+ 'loop'
/**
* @ngdoc method
* @name $ionicSlideBoxDelegate#$getByHandle