Skip to content

Commit

Permalink
Do not expose device-detector, align class name with other elements
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Feb 5, 2018
1 parent b63dbee commit acc40d6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/vaadin-device-detector.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
*
* @memberof Vaadin
*/
class DeviceDetector extends (class extends Polymer.Element {}) {
class DeviceDetectorElement extends (class extends Polymer.Element {}) {

static get is() {
return 'vaadin-device-detector';
}

static get properties() {
return {
/*
/**
* `true`, when running in a phone.
*/
phone: {
Expand All @@ -35,7 +35,7 @@
notify: true
},

/*
/**
* `true`, when running in a touch device.
* @default false
*/
Expand All @@ -45,7 +45,7 @@
value: () => this._touch()
},

/*
/**
* `true`, when running in a tablet/desktop device.
*/
wide: {
Expand All @@ -69,12 +69,7 @@
}
}

customElements.define(DeviceDetector.is, DeviceDetector);
/**
* @namespace Vaadin
*/
window.Vaadin = window.Vaadin || {};
Vaadin.DeviceDetector = DeviceDetector;
customElements.define(DeviceDetectorElement.is, DeviceDetectorElement);
})();
</script>
</dom-module>

0 comments on commit acc40d6

Please sign in to comment.