Import Polymer classes instead of global ones in CommentApiMock
Change-Id: I01d619c73a6a15e6e789f41df55d7dfd7b292d77
This commit is contained in:
@@ -14,12 +14,14 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
class CommentApiMock extends Polymer.GestureEventListeners(
|
||||
Polymer.LegacyElementMixin(
|
||||
Polymer.Element)) {
|
||||
import {GestureEventListeners} from '@polymer/polymer/lib/mixins/gesture-event-listeners.js';
|
||||
import {PolymerElement} from '@polymer/polymer/polymer-element.js';
|
||||
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 properties() {
|
||||
@@ -48,7 +50,6 @@
|
||||
this._changeComments = this.$.commentAPI._changeComments;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(CommentApiMock.is, CommentApiMock);
|
||||
})();
|
||||
customElements.define(CommentApiMock.is, CommentApiMock);
|
||||
|
||||
Reference in New Issue
Block a user