| Index: pkg/polymer/lib/src/instance.dart
|
| diff --git a/pkg/polymer/lib/src/instance.dart b/pkg/polymer/lib/src/instance.dart
|
| index 671d9e0080f776778bd225c90b1f9b387a93f582..0f62e21d3335f1ae5447df4815d2e43fd1e81141 100644
|
| --- a/pkg/polymer/lib/src/instance.dart
|
| +++ b/pkg/polymer/lib/src/instance.dart
|
| @@ -794,8 +794,8 @@ abstract class Polymer implements Element, Observable, NodeBindExtension {
|
| // explicitly. Unless VM mirrors are optimized first, this will be expensive
|
| // once custom elements extend directly from Element (see issue 11108).
|
| var receiverMirror = reflect(receiver);
|
| - var method = receiverMirror.type.methods[methodName];
|
| - if (method != null) {
|
| + var method = receiverMirror.type.declarations[methodName];
|
| + if (method != null && method is MethodMirror && !method.isConstructor) {
|
| // This will either truncate the argument list or extend it with extra
|
| // null arguments, so it will match the signature.
|
| // TODO(sigmund): consider accepting optional arguments when we can tell
|
|
|