AWV-3: Creating mixin for form button components
This commit is contained in:
1 parent
e1da28ca88
commit
b1a786071e
7 files changed
+157
-63
No files matched your search
@@ -28,6 +28,11 @@ class Mixin {
|
||||
// Get the dependent mixin to be initizalized
|
||||
const mixin = Mixin.getMixin(dependency);
|
||||
|
||||
// Throw an error if a cyclic dependency was found on this mixin
|
||||
if (mixin === this) {
|
||||
throw new Error(`Mixin ${dependency} has a cyclic dependency.`);
|
||||
}
|
||||
|
||||
// Initizalize the mixin dependencies recursively
|
||||
mixin.init(template, data, applied, behaviors);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user