Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed May 17, 2016
1 parent 7695c07 commit 775cb84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dist/js/angular-isloading.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'use strict';

angular.module('nx.widget')
.directive('isloading', ['$http','$timeout', function ($http,$timeout) {
.directive('isloading', ['$http', function ($http) {
return {
restrict: 'A',
scope: {
Expand All @@ -19,9 +19,7 @@
scope.$watch(function () {
return $http.pendingRequests.length > 0;
}, function (inValue) {
$timeout(function(){
scope.loading = inValue;
})
scope.loading = inValue;
});
}
};
Expand Down

0 comments on commit 775cb84

Please sign in to comment.