Fix eslint

This commit is contained in:
Penar Musaraj 2019-06-14 12:29:06 -04:00
parent bb38940ee4
commit 300c862244
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default Ember.Component.extend({
Ember.run.throttle(this, mousemove, event, 20);
}).bind(this);
const mouseup = (e => {
const mouseup = (() => {
$document.off("mousemove", throttledMousemove);
$document.off("mouseup", mouseup);
this.setProperties({

View File

@ -4,8 +4,8 @@ export default {
container.lookup("store:main").addPluralization("query", "queries");
if (!String.prototype.endsWith) {
// eslint-disable-next-line no-extend-native
String.prototype.endsWith = function(searchString, position) {
// eslint-disable-line no-extend-native
var subjectString = this.toString();
if (position === undefined || position > subjectString.length) {
position = subjectString.length;