From 4f962a005f4c513867f13159ac8c64f8db5acf81 Mon Sep 17 00:00:00 2001 From: p2media Date: Fri, 25 Sep 2015 11:16:08 +0200 Subject: [PATCH] dirty workaround for issue #88 --- dist/_SassyJSON.scss | 9 ++++++++- stylesheets/encode/api/_json.scss | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/dist/_SassyJSON.scss b/dist/_SassyJSON.scss index 428c29e..6c31129 100644 --- a/dist/_SassyJSON.scss +++ b/dist/_SassyJSON.scss @@ -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 @@ -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); } diff --git a/stylesheets/encode/api/_json.scss b/stylesheets/encode/api/_json.scss index ee172ab..d271ad7 100644 --- a/stylesheets/encode/api/_json.scss +++ b/stylesheets/encode/api/_json.scss @@ -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); }