Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

temporary workaround for issue #88 #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion dist/_SassyJSON.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! sassyjson - v1.1.8 - 2015-09-24 */
/*! sassyjson - v1.1.8 - 2015-09-25 */
/// Logs an error at `$pointer` with `$string` message
/// @access private
/// @param {String} $string - error message
Expand Down Expand Up @@ -995,6 +995,13 @@
$type: type-of($value);

@if function_exists('_json-encode--#{$type}') {

// temporary workaround for
// https://github.com/HugoGiraudel/SassyJSON/issues/88
@if ($type == "list") {
@return _json-encode--list($value);
}

@return call('_json-encode--#{$type}', $value);
}

Expand Down
7 changes: 7 additions & 0 deletions stylesheets/encode/api/_json.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
$type: type-of($value);

@if function_exists('_json-encode--#{$type}') {

// temporary workaround for
// https://github.com/HugoGiraudel/SassyJSON/issues/88
@if ($type == "list") {
@return _json-encode--list($value);
}

@return call('_json-encode--#{$type}', $value);
}

Expand Down