Skip to content

Commit

Permalink
Remove repetitive sentence.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Evans committed Aug 27, 2014
1 parent 6f40645 commit a534f68
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/polymer/polymer.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ which calls `Polymer`:
<template>...</template>
</polymer-element>

In case #2, where the script is invoked before the `<polymer-element>` tag,
In case #2, where the script is invoked before the `<polymer-element>` tag,
the call to `Polymer` **must include the tag name**:

// tagname.js
Expand Down Expand Up @@ -186,20 +186,18 @@ Elements can be registered in pure JavaScript like this:
You need to add the `<polymer-element>` to the document so that the
Custom Elements polyfill picks it up.

**Important:** Since the `Polymer` call here is outside the `<polymer-element>`,
**Important:** Since the `Polymer` call here is outside the `<polymer-element>`,
it must include the tag name argument.
{: .alert .alert-error }

### Adding public properties and methods {#propertiesmethods}

To define methods/properties on your element, pass a prototype object to `Polymer()`:
To define methods and properties on your element, pass a prototype object to `Polymer()`:

<pre>
Polymer([ <em class="nocode">tag-name</em>, ] <em class="nocode">prototype</em>);
</pre>

The _prototype_ can include custom properties and methods for your element.

The following example defines a property `message`, a property `greeting`
using an ES5 getter, and a method `foo`:

Expand Down

0 comments on commit a534f68

Please sign in to comment.