mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 05:41:14 +01:00
Fix a @content bug.
This commit is contained in:
parent
ac939f5bfe
commit
5e4d260c2a
@ -73,6 +73,8 @@
|
||||
|
||||
* Fix an `@extend` edge case involving multiple combinators in a row.
|
||||
|
||||
* Fix a bug where a `@content` block could get incorrectly passed to a mixin.
|
||||
|
||||
## 1.0.0-alpha.8
|
||||
|
||||
* Add the `content-exists()` function.
|
||||
|
@ -714,14 +714,10 @@ class _PerformVisitor
|
||||
return null;
|
||||
}
|
||||
|
||||
if (node.children == null) {
|
||||
_runUserDefinedCallable(node.arguments, mixin, node.span, callback);
|
||||
} else {
|
||||
var environment = _environment.closure();
|
||||
_runUserDefinedCallable(node.arguments, mixin, node.span, () {
|
||||
_environment.withContent(node.children, environment, callback);
|
||||
});
|
||||
}
|
||||
var environment = node.children == null ? null : _environment.closure();
|
||||
_runUserDefinedCallable(node.arguments, mixin, node.span, () {
|
||||
_environment.withContent(node.children, environment, callback);
|
||||
});
|
||||
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user