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

Commit

Permalink
Merge pull request #2 from devatrox/feature/safe-get-function
Browse files Browse the repository at this point in the history
Using safe get-function() call in each()
  • Loading branch information
devatrox committed Jan 8, 2017
2 parents c60e63e + bf39bdd commit 8c71f94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/lists/_each.scss
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 8c71f94

Please sign in to comment.