##// 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-unsafe-html.html
31 lines | 847 B | text/html | HtmlLexer
js: use ES6 classes for polymer 2.x
r3172 <link rel="import" href="../../../../../../bower_components/polymer/polymer-element.html">
components: reorganize build pipeline to have nice separation of html/js/css
r703
<dom-module id="rhodecode-unsafe-html">
<template>
<style include="shared-styles"></style>
frontend: Use Polymer 2.0
r2915 <slot></slot>
components: reorganize build pipeline to have nice separation of html/js/css
r703 </template>
polymer: prepare for 3.x migration
r3149 <script>
js: use ES6 classes for polymer 2.x
r3172 class RhodecodeUnsafeHtml extends Polymer.Element {
static get is() {
return 'rhodecode-unsafe-html';
}
static get properties() {
return {
text: {
type: String,
observer: '_handleText'
}
polymer: prepare for 3.x migration
r3149 }
js: use ES6 classes for polymer 2.x
r3172 }
_handleText(newVal, oldVal) {
polymer: prepare for 3.x migration
r3149 this.innerHTML = this.text;
}
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 customElements.define(RhodecodeUnsafeHtml.is, RhodecodeUnsafeHtml);
polymer: prepare for 3.x migration
r3149 </script>
components: reorganize build pipeline to have nice separation of html/js/css
r703 </dom-module>