| Index: pkg/polymer/lib/src/instance.dart
|
| ===================================================================
|
| --- pkg/polymer/lib/src/instance.dart (revision 30027)
|
| +++ pkg/polymer/lib/src/instance.dart (working copy)
|
| @@ -794,8 +794,8 @@
|
| // 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.declarations[methodName];
|
| - if (method != null && method is MethodMirror && !method.isConstructor) {
|
| + var method = receiverMirror.type.methods[methodName];
|
| + if (method != null) {
|
| // 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
|
|
|