Hi all,
So in 0.9 Mixins becomes Behaviors, but I can't even make the official demo work.
As said in the
doc, I should put the behavior object in a html file(which is weird since it'll broke some build chains), and then do this:
<link rel="import" href="highlight-behavior.html">
But all I got is `HighlightBehavior not defined` when runinng the line
behaviors: [HighlightBehavior]
On the other hand, I renamed the extension of the script to `.js` and tried this:
<script src="highlight-behavior.js">
<script>
Polymer({
is: 'my-element',
behaviors: [HighlightBehavior]
});
</script>
And it works fine.
So I'm wondering is that a bug in docs or am I doing something wrong?
Thx
NanoWANG