В Polymer 1.0 у меня есть следующий фрагмент кода:
CustomBehaviorImpl = {
properties: {
// Define property here...
// ...
},
// Other custom behaviors definition
// ...
};
CustomBehavior = [
Polymer.AppNetworkStatusBehavior,
CustomBehaviorImpl,
];
Как бы я сделал это в Polymer 2.0, чтобы создать класс CustomMixin
.