Skip to content

Commit

Permalink
Use Vaadin.ElementMixin
Browse files Browse the repository at this point in the history
Checks Polymer version and reports usage statistics in development mode
  • Loading branch information
Artur- committed Dec 11, 2017
1 parent bbce641 commit 9054637
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ We are using [ESLint](http://eslint.org/) for linting JavaScript code. You can c
## License

Apache License 2.0

Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"polymer": "^2.0.0",
"vaadin-overlay": "#next",
"vaadin-themable-mixin": "^1.1.0",
"vaadin-valo-theme": "^2.0.0"
"vaadin-valo-theme": "^2.0.0",
"vaadin-element-mixin": "vaadin/vaadin-element-mixin#^1.0.1"
},
"devDependencies": {
"iron-component-page": "^3.0.0",
Expand Down
8 changes: 4 additions & 4 deletions src/vaadin-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<link rel="import" href="../../polymer/polymer-element.html">
<link rel="import" href="../../vaadin-overlay/vaadin-overlay.html">
<link rel="import" href="../../vaadin-element-mixin/vaadin-element-mixin.html">

<dom-module id="vaadin-dialog">
<template>
Expand Down Expand Up @@ -63,13 +64,13 @@
*
* See [`<vaadin-overlay>` documentation](https://github.com/vaadin/vaadin-overlay/blob/master/vaadin-overlay.html)
* for `<vaadin-dialog-overlay>` parts.
*
*
* See [ThemableMixin – how to apply styles for shadow parts](https://github.com/vaadin/vaadin-themable-mixin/wiki)
*
* @memberof Vaadin
* @demo demo/index.html
*/
class VaadinDialog extends (class extends Polymer.Element {}) {
class VaadinDialog extends Vaadin.ElementMixin(class extends Polymer.Element {}) {
static get is() {
return 'vaadin-dialog';
}
Expand Down Expand Up @@ -169,8 +170,7 @@
/**
* @namespace Vaadin
*/
window.Vaadin = window.Vaadin || {};
Vaadin.VaadinDialog = VaadinDialog;
window.Vaadin.VaadinDialog = VaadinDialog;
}
</script>
</dom-module>

0 comments on commit 9054637

Please sign in to comment.