##// END OF EJS Templates
js: use ES6 classes for polymer 2.x
js: use ES6 classes for polymer 2.x

File last commit:

r3172:d37fc984 default
r3172:d37fc984 default
Show More
rhodecode-favicon.html
38 lines | 1011 B | text/html | HtmlLexer
favicon: added favicon notifications
r882 <link rel="import" href="../../../../../../bower_components/polymer/polymer.html">
<dom-module id="rhodecode-favicon">
<template>
</template>
polymer: prepare for 3.x migration
r3149 <script>
js: use ES6 classes for polymer 2.x
r3172 class RhodecodeFavicon extends Polymer.Element {
static get is() { return 'rhodecode-favicon'; }
static get properties() {
return {
favicon: Object,
counter: {
type: Number,
observer: '_handleCounter'
}
polymer: prepare for 3.x migration
r3149 }
js: use ES6 classes for polymer 2.x
r3172 }
polymer: prepare for 3.x migration
r3149
js: use ES6 classes for polymer 2.x
r3172 connectedCallback() {
super.connectedCallback();
polymer: prepare for 3.x migration
r3149 this.favicon = new Favico({
type: 'rectangle',
animation: 'none'
});
js: use ES6 classes for polymer 2.x
r3172 }
_handleCounter(newVal, oldVal) {
polymer: prepare for 3.x migration
r3149 this.favicon.badge(this.counter);
}
js: use ES6 classes for polymer 2.x
r3172
}
customElements.define(RhodecodeFavicon.is, RhodecodeFavicon);
polymer: prepare for 3.x migration
r3149
</script>
favicon: added favicon notifications
r882 </dom-module>