Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
insertedinsertedCallback -> inserted; removedCallback -> removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jun 12, 2013
1 parent 1812da5 commit 88916c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions polymer-ui-clock/polymer-ui-clock.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
seconds: -1,
minutes: -1,
hours: -1,
insertedCallback: function() {
inserted: function() {
// when we are inserted into DOM, start watching the time
this.updateTime();
this.interval = setInterval(this.updateTime.bind(this), 1000);
},
removedCallback: function() {
removed: function() {
// when we are removed from DOM, stop watching the time
clearInterval(this.interval);
},
Expand Down
2 changes: 1 addition & 1 deletion polymer-ui-menu/polymer-ui-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</template>
<script>
Polymer.register(this, {
insertedCallback: function() {
inserted: function() {
if (!this.theme) {
this.findTheme();
}
Expand Down
2 changes: 1 addition & 1 deletion polymer-ui-theme-aware/polymer-ui-theme-aware.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<element name="polymer-ui-theme-aware" attributes="theme">
<script>
Polymer.register(this, {
insertedCallback: function() {
inserted: function() {
if (!this.theme) {
this.findTheme();
}
Expand Down

0 comments on commit 88916c8

Please sign in to comment.