Import Polymer classes instead of global ones in CommentApiMock

Change-Id: I01d619c73a6a15e6e789f41df55d7dfd7b292d77
This commit is contained in:
Dmitrii Filippov
2020-04-23 13:22:15 +02:00
parent 736175de0a
commit ba8fa47dbb

View File

@@ -14,12 +14,14 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
(function() {
'use strict';
class CommentApiMock extends Polymer.GestureEventListeners( import {GestureEventListeners} from '@polymer/polymer/lib/mixins/gesture-event-listeners.js';
Polymer.LegacyElementMixin( import {PolymerElement} from '@polymer/polymer/polymer-element.js';
Polymer.Element)) { import {LegacyElementMixin} from '@polymer/polymer/lib/legacy/legacy-element-mixin.js';
class CommentApiMock extends GestureEventListeners(
LegacyElementMixin(
PolymerElement)) {
static get is() { return 'comment-api-mock'; } static get is() { return 'comment-api-mock'; }
static get properties() { static get properties() {
@@ -51,4 +53,3 @@
} }
customElements.define(CommentApiMock.is, CommentApiMock); customElements.define(CommentApiMock.is, CommentApiMock);
})();