Answer the question
In order to leave comments, you need to log in
Is it possible to change an already declared function in requirejs?
There was a task to write an extension that will complement some of the functionality of the site. And the function I need is written like this:
define("lib/interface/leads/pipeline/unsorted/item", ["require", "jquery", "underscore", "twig", "cocktail", "lib/core/view", "lib/components/mail/api", "lib/components/base/confirm", "lib/components/base/player", "lib/interface/leads/pipeline/unsorted/mixins/unsorted_linking_up", "lib/utils/account/users"], function(e) {
"use strict";
// объявления переменных
return o.extend({
// еще куча кода
acceptClick: function(e) {
e.stopPropagation(),
e.preventDefault(),
this.$el.trigger("unsorted:accept:click"),
this.model.accept({
status_id: this.options.statuses[0]
})
}
})
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question