New site documentation

72 views
Skip to first unread message

Ryan Kuykendall

unread,
Feb 22, 2014, 2:06:58 PM2/22/14
to polym...@googlegroups.com
First off, the new site documentation is great.

I had a question about the use of Path.get to traverse an object in the section on observers. Isn't Path currently intended for defining paths in SVG and Canvas (at least in Chrome Canary?)

Also, I noticed that a few of the code samples had unevaled template code (note the site.project_title instead of Polymer):

<polymer-element name="polymer-cool">
<script>
{{site.project_title}}('polymer-cool', {
praise: 'cool',
makeCoolest: function() {
this.praise = 'coolest';
}
});
</script>
</polymer-element>


<polymer-element name="polymer-cooler" extends="polymer-cool" on-click="{{makeCoolest}}">
<template>polymer-cooler is {{praise}}</template>
<script>
{{site.project_title}}('polymer-cooler', {
praise: 'cooler',
makeCoolest: function() {
this.super(); // calls polymer-cool's makeCoolest()
}
});
</script>
</polymer-element>

<polymer-cooler></polymer-cooler>

Thanks again for the doc refresh!

Rafael Weinstein

unread,
Feb 25, 2014, 4:28:43 PM2/25/14
to Ryan Kuykendall, polymer-dev
On Sat, Feb 22, 2014 at 11:06 AM, Ryan Kuykendall <ryan.ku...@gmail.com> wrote:
First off, the new site documentation is great.

I had a question about the use of Path.get to traverse an object in the section on observers. Isn't Path currently intended for defining paths in SVG and Canvas (at least in Chrome Canary?)

The "Path" class is different from the svg <path> element. It's possible this is unwise naming on our part, but it shouldn't create any functional problems
 

Also, I noticed that a few of the code samples had unevaled template code (note the site.project_title instead of Polymer):

<polymer-element name="polymer-cool">
  <script>
    {{site.project_title}}('polymer-cool', {
      praise: 'cool',
      makeCoolest: function() {
        this.praise = 'coolest';
      }
    });
  </script>
</polymer-element>


<polymer-element name="polymer-cooler" extends="polymer-cool" on-click="{{makeCoolest}}">
  <template>polymer-cooler is {{praise}}</template>
  <script>
    {{site.project_title}}('polymer-cooler', {
      praise: 'cooler',
      makeCoolest: function() {
        this.super(); // calls polymer-cool's makeCoolest()
      }
    });
  </script>
</polymer-element>

<polymer-cooler></polymer-cooler>

Can you point to the page that has this code?
 

Thanks again for the doc refresh!

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/2b8a50fb-de5d-44ff-8140-5fba6f7c18bf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ryan Kuykendall

unread,
Feb 26, 2014, 5:53:26 PM2/26/14
to polym...@googlegroups.com, Ryan Kuykendall

This was the page where I saw the documentations issues  (although it appears they have been fixed):

  http://www.polymer-project.org/docs/polymer/polymer.html

And here is a screenshot of creating a Path instance from the Chrome developer console (with experimental web features turned on):

Hajime Morrita

unread,
Feb 26, 2014, 6:23:53 PM2/26/14
to Ryan Kuykendall, polym...@googlegroups.com
Seems like you hit this one, that is behind the flag.

According to the thread, it will be renamed to Path2D.



For more options, visit https://groups.google.com/groups/opt_out.



--
morrita
Reply all
Reply to author
Forward
0 new messages