Skip to content

Commit

Permalink
Ensure return is 1 if exponent is 0 #138
Browse files Browse the repository at this point in the history
  • Loading branch information
scottkellum committed Apr 4, 2017
1 parent 02be018 commit 0e5dafd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stylesheets/modularscale/_pow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

@function ms-pow($b,$e) {

// Return 1 if exponent is 0
@if $e == 0 {
@return 1;
}

// If pow() exists (compass or mathsass) use that.
@if function-exists('pow') {
@return pow($b,$e);
Expand Down

0 comments on commit 0e5dafd

Please sign in to comment.