Closed michalbe closed 10 years ago
@lgarron : Ok, the value was just string, parsing it to number helps. Sorry, I don't have a lot of experience with angular.
Looks good. Could you squash the commits into one?
(Also, I'd remove the , 10
, and use parseFloat
for consistency.)
Also, right now the code works because Math.floor($scope.current_move)
converts to string. I should probably make things consistent (angular directive for keeping current_move
a float, or always use parseFloat
before using it.)
I just fixed this in a bunch of places. Thanks for the PR, even if I didn't take it as-is.
Fixes #62 again.