Compat: Provide empty LESS mixin .code()

Some 3rd party modules (e.g. vsphere) use this mixin (though we never had it).
With lessphp version 0.5.0 using undefined mixins now throws exceptions.
Since we can't rely that users upgrade those modules first,
we provide the mixin for compatibility here.
This commit is contained in:
Eric Lippmann 2019-07-26 13:00:02 +02:00 committed by Johannes Meyer
parent d13cade0f3
commit bfec423eae
1 changed files with 6 additions and 0 deletions

View File

@ -32,3 +32,9 @@ table.action {
table.avp {
.name-value-table()
}
.code() {
// Some 3rd party modules (e.g. vsphere) use this mixin (though we never had it)
// With lessphp version 0.5.0 using undefined mixins now throws exceptions
// Since we can't rely that users upgrade those modules first, we provide the mixin for compatibility here
}