Skip to content

Commit

Permalink
dirty workaround for issue KittyGiraudel#88
Browse files Browse the repository at this point in the history
  • Loading branch information
p2media committed Sep 25, 2015
1 parent b4afacb commit 4f962a0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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

0 comments on commit 4f962a0

Please sign in to comment.