jshint fixes

This commit is contained in:
Adam Bradley
2013-12-07 15:05:56 -06:00
parent bad322d2da
commit 3cfcfc01a4
14 changed files with 47 additions and 47 deletions

View File

@@ -94,7 +94,7 @@ angular.module('ionic.ui.content', [])
$timeout(function() {
sv = new ionic.views.Scroll({
el: $element[0],
scrollEventInterval: parseInt($scope.scrollEventInterval) || 40
scrollEventInterval: parseInt($scope.scrollEventInterval, 10) || 40
});
// Activate pull-to-refresh

View File

@@ -130,12 +130,12 @@ angular.module('ionic.ui.radio', [])
$scope.$on('radioButton.select', function(e, val) {
if(val == $scope.$eval($attr.ngValue)) {
$element.addClass('active');
};
}
});
$element.bind('click', clickHandler);
}
}
};
});
})(window.ionic);

View File

@@ -87,9 +87,9 @@ angular.module('ionic.ui.scroll', [])
// Let child scopes access this
$scope.$parent.scrollView = sv;
}, 500);
}
};
}
}
};
}]);
})();

View File

@@ -47,7 +47,7 @@ angular.module('ionic.ui.slideBox', [])
});
}
}
}
};
}])
.directive('slide', function() {
@@ -60,9 +60,9 @@ angular.module('ionic.ui.slideBox', [])
compile: function(element, attr, transclude) {
return function($scope, $element, $attr, slideBoxCtrl) {
slideBoxCtrl.slideAdded();
}
};
}
}
};
})
.directive('pager', function() {
@@ -71,7 +71,7 @@ angular.module('ionic.ui.slideBox', [])
replace: true,
require: '^slideBox',
template: '<div class="slide-box-pager"><span ng-repeat="slide in slides"><i class="icon ion-record"></i></span></div>'
}
};
});

View File

@@ -171,7 +171,7 @@ angular.module('ionic.ui.tabs', ['ngAnimate'])
});
}
});
}
};
}
};
}])
@@ -232,6 +232,6 @@ angular.module('ionic.ui.tabs', ['ngAnimate'])
transclude: true,
template: '<div class="tabs tabs-primary" ng-transclude>' +
'</div>'
}
};
});

View File

@@ -14,9 +14,9 @@ angular.module('ionic.ui.virtRepeat', [])
var virtualList = ctrls[1];
virtualList.listView.renderViewport = function(high, low, start, end) {
}
}
};
};
}
}
};
});
})(ionic);

View File

@@ -52,7 +52,7 @@ function findViewportAndContent(startElement){
break;
}
}
if( n == null ){
if( n === null ){
// That element should work as a viewport.
return {
viewport: angular.element(e),
@@ -320,7 +320,7 @@ angular.module('ionic.ui.virtualRepeat', [])
// The watch on the collection is just a watch on the length of the
// collection. We don't care if the content changes.
scope.$watch(sfVirtualRepeatWatchExpression, sfVirtualRepeatListener, true);
}
};
}
};
}]);

View File

@@ -27,7 +27,7 @@ angular.module('ionic.service.loading', ['ionic.ui.loading'])
// Make sure there is only one loading element on the page at one point in time
var existing = angular.element($document[0].querySelector('.loading-backdrop'));
if(existing.length) {
var scope = existing.scope();
scope = existing.scope();
if(scope.loading) {
scope.loading.show();
return scope.loading;