I am also currently observing some interested phenomena with regards to imports.
In particular.
When an elements imports two other elements, created method on the imported elements is invoked twice. The first time it is invoked, shadowRoot is null. This causes me a number of issues as I trying to sort out bindings; problem is solved using an if (shadowRoot!=null)
<link rel="import" href="packages/pTest10/navtabs.html">
<link rel="import" href="linechart.html">
<polymer-element name="weather-app">
<template>
<style>
</style>
<div>
<nav-tabs id="navTab"></nav-tabs>
<line-chart id="speedChart" chartTitle="Wind speed" xaxisTitle="Time" yaxisTitle="Speed (knots)"></line-chart>
<line-chart id="directionChart" chartTitle="Wind direction" xaxisTitle="Time" yaxisTitle="Direction (degrees)" minValue="0" maxValue="360"></line-chart>
</div>
</template>
<script type="application/dart" src="weatherapp.dart"></script>
</polymer-element>
This does not happen if there is only one import?
Also if you define the imports within the polymer-element definition the same happens?
I wonder if I am doing something wrong here...
Nick