W
W
WQP2017-07-14 20:01:17
JavaScript
WQP, 2017-07-14 20:01:17

How to change the resources package?

Hello, is it possible to somehow change the resources package? I need to inflect words, but laravel chooses the wrong indexes for Russian dictionaries , this line . How to change it in the project if the package comes with laravel right away?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2019-01-21
@Korifa

To remove an event handler, you need to pass the same function that was passed when creating the event handler.
The bind method creates a new function: https://developer.mozilla.org/en/docs/Web/JavaScri...
I don't see the whole picture of what's going on with you. I do something like this:

class SomeModule {
  constructor() {
    this.handlerShim = (e) => {
      this.handler(e);
    };
  }

  method1() {
    document.addEventListener('click', this.handlerShim);
  }

  method2() {
    document.removeEventListener('click', this.handlerShim);
  }

  handler(e) {
    console.log(e);
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question