Closed jolleekin closed 8 years ago
This is working as intended, extending anything other than PolymerElement
is not supported. Instead, you should use a behavior.
For example in this case:
@behavior
abstract class ReadyBehavior {
static ready(PolymerElement instance) {
print('ReadyBehavior.ready called');
}
}
@PolymerRegister('my-element')
class MyElement extends PolymerElement with ReadyBehavior {
MyElement.created() : super.created();
}
The ready method on your class and all your behaviors will be invoked (this is why its a static method). There is no need to call super() when using behaviors.
The
ready
method in a super class is no longer called without an explicit overriding method on the child class.I'm using polymer 1.0.0-rc.15.