Skip to content

Commit

Permalink
Fix style-guide warnings
Browse files Browse the repository at this point in the history
closes #23 #27
  • Loading branch information
felquis committed Jul 4, 2015
1 parent 4dfbe48 commit 2dda1f7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/shared/configure-status-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function configStatusBar($ionicPlatform) {
*/
function platformReady() {
if (window.StatusBar) {
StatusBar.styleDefault()
StatusBar.styleDefault();
}
}
}
23 changes: 18 additions & 5 deletions src/shared/ig-button-loading/ig-button-loading.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,45 @@ var DEFAULT_LOADING_OPTIONS = {
hideOnStateChange: false,
delay: 0,
duration: undefined
}
};

/**
* Controller Definition
*/
function IGButtonLoadingController($scope, $state, $timeout, $ionicLoading) {

console.log($scope.ig);
$scope.ig = ionic.extend(DEFAULT_LOADING_OPTIONS, $scope.ig);
$scope.ig = $scope.ig;
console.log($scope.ig);

$scope.$on('$destroy', function () {
$scope.$on('$destroy', destroy);

/**
* Scope Destroy
*/
function destroy() {
console.log('igLoading $destroy');
});
}

/**
* Show loading
*/
function show() {
$ionicLoading.show(DEFAULT_LOADING_OPTIONS);
}

/**
* Show loading with no backdrop option
*/
function showNoBackdrop() {
$ionicLoading.show({
template: $scope.title,
noBackdrop: true
});
}

/**
* Hide loading
*/
function hideLoading() {
$ionicLoading.show();
}
Expand Down

0 comments on commit 2dda1f7

Please sign in to comment.