dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
180 stars 33 forks source link

Dart observe methods get extra initial call with [null, null] args #558

Closed jakemac53 closed 9 years ago

jakemac53 commented 9 years ago

This happens in you have a property with a default value of null. We can't pass a value of undefined to JS, so its actually seeing a change from undefined => null. However dart converts those both to null when it calls the event handler.

jakemac53 commented 9 years ago

blocked on https://github.com/dart-lang/sdk/issues/24088

jakemac53 commented 9 years ago

actually I just did an internal implementation of this to handle this use case specifically.