Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Using safe get-function() call in each()
Browse files Browse the repository at this point in the history
  • Loading branch information
devatrox committed Jan 8, 2017
1 parent c60e63e commit bf39bdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/lists/_each.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

@each $item in $list {
$newArgs: join(append((), $item, $argSeparator), $args, $argSeparator);
$results: append($results, call($function, $newArgs...), $listSeparator);
$call: if(function-exists('get-function'), call(get-function($function), $newArgs...), call($function, $newArgs...));
$results: append($results, $call, $listSeparator);
}

@return $results;
Expand Down

0 comments on commit bf39bdd

Please sign in to comment.