Skip to content

Commit

Permalink
Inspect property before output to avoid sass choking on null values
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnicholls committed Feb 25, 2014
1 parent c09971e commit 6966182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@each $usecase in $o-colors-usecase-list {
@if (($property and $name == nth($usecase, 1) and $property == nth($usecase, 3)) or (not $property and $name == nth($usecase, 1) + '-' + nth($usecase, 3))) {
@if (length($usecase) == 4 and nth($usecase,4) == DEPRECATED) {
@warn "Deprecated use-case name '" + $name + "', variant '" + $property + "' used";
@warn "Deprecated use-case name '" + $name + "', variant '" + inspect($property) + "' used";
}
@return _oColorsGetPaletteColor(nth($usecase,2));
}
Expand Down

0 comments on commit 6966182

Please sign in to comment.