e.g.ancestorBehavior.js:
export default Behavior({ relations: {
descendant: {
type: “descendant”,
target: descendantBehavior,
linked() { },
linkChanged() { },
unlinked() { }
}
}
});
descendantBehavior.js:
export default Behavior({
relations: {
ancestor: {
type: "ancestor",
target: ancestorBehavior,
linked() { },
linkChanged() { },
unlinked() { }
}
}
});
我还需要做什么吗?