Polymer / old-docs-site

Old Polymer site. Replaced by these repos: polymer-project.org, polymer-library-docs
https://www.polymer-project.org
1.02k stars 2.43k forks source link

Fix incorrect legacy behavior code sample in 3.0 docs #2632

Closed justinribeiro closed 6 years ago

justinribeiro commented 6 years ago

The legacy behavior code sample in the current 3.0 docs is incorrect.

  1. The imports are not correct (they're actually backwards).
  2. Polymer.mixinBehaviors is used when it should be only mixinBehaviors
  3. It is unclear where MyBehavior and MyBehavior2 come from.

This PR fixes the above issues by updating the code sample, with the addition of MyBehavior and MyBehavior2 as imports to help devs who are new to import how a legacy behavior might be used.

ghost commented 6 years ago

Thank you!