Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #22 from vleborgne/master
Browse files Browse the repository at this point in the history
Update angular-spinner.js
  • Loading branch information
urish committed Jul 24, 2014
2 parents c583169 + 0bf96a2 commit 4342085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion angular-spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@
};

scope.stop = function () {
scope.startActive=false;
if (scope.spinner) {
scope.spinner.stop();
}
};

scope.$watch(attr.usSpinner, function (options) {
scope.stop();
scope.spinner = new SpinnerConstructor(options);
if (!scope.key || scope.startActive) {
scope.stop();
scope.spinner.spin(element[0]);
}
}, true);
Expand Down

0 comments on commit 4342085

Please sign in to comment.