Skip to content

Commit

Permalink
fix: fix libsass 4.0 call deprecation warning at-import#63
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoden committed May 31, 2018
1 parent 03ddb81 commit ed42ed5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions stylesheets/functions/_every.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

@function sl-every($list, $function, $args...) {
@each $item in $list {
@if not call($function, $item, $args...) {
@if not call(sl-safe-get-function($function), $item, $args...) {
@return false;
}
}
}

@return true;
}
8 changes: 4 additions & 4 deletions stylesheets/functions/_some.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
///
/// @return {Bool}
///

@function sl-some($list, $function, $args...) {
@each $item in $list {
@if call($function, $item, $args...) {
@if call(sl-safe-get-function($function), $item, $args...) {
@return true;
}
}
}

@return false;
}
8 changes: 4 additions & 4 deletions stylesheets/functions/_walk.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
///
/// @return {List | Null}
///

@function sl-walk($list, $function, $args...) {
$_: sl-missing-dependencies('sl-to-map', 'sl-to-list');

@if not function-exists($function) {
@error 'There is no `#{$function}` function for `sl-walk`.';
}

@each $index, $value in sl-to-map($list) {
$arguments: join($value, $args);
$list: set-nth($list, $index, call($function, $arguments...));
$list: set-nth($list, $index, call(sl-safe-get-function($function), $arguments...));
}

@return sl-to-list($list);
}

0 comments on commit ed42ed5

Please sign in to comment.