Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update angular-timer.js #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update angular-timer.js #103

wants to merge 1 commit into from

Conversation

yoshicn
Copy link

@yoshicn yoshicn commented Aug 14, 2014

Issue found:
autoStart attribute does not properly work on the directive.

  1. autoStart does not exists: Timer starts automatically (expected behaviour).
  2. autoStart exists, set to fasle: Timer starts automatically (expected behaviour).
  3. autoStart exists, set to true: Timer does not start automatically (NOT expected behaviour).

This happens because variable $scope.autoStart (on line 256 in the "if" statement) is a 'string' type.
So "$scope.autoStart === true" never passes.

Proposal solution will fix the problem with variable type.

Issue found:
autoStart attribute does not properly work on the directive.
1) autoStart does not exists: Timer starts automatically (expected behaviour).
2) autoStart exists, set to fasle: Timer starts automatically (expected behaviour).
2) autoStart exists, set to true: Timer does not start automatically (NOT expected behaviour).

This happens because variable $scope.autoStart (on line 256 in the "if" statement) is a 'string' type.
So "$scope.autoStart === true" never passes.

Proposal solution will fix the problem with variable type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant