Skip to content

Commit 0e5dafd

Browse files
committed
Ensure return is 1 if exponent is 0 #138
1 parent 02be018 commit 0e5dafd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stylesheets/modularscale/_pow.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

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

8+
// Return 1 if exponent is 0
9+
@if $e == 0 {
10+
@return 1;
11+
}
12+
813
// If pow() exists (compass or mathsass) use that.
914
@if function-exists('pow') {
1015
@return pow($b,$e);

0 commit comments

Comments
 (0)