Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Регистрация
Вход
gitlord
/
isleward
зеркало из
https://gitlab.com/Isleward/isleward.git
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Релизы
203
Вики
Активность
Просмотр исходного кода
modding[
#1697
]: Added a client-side event that fires after a UI is rendered and changed the uiBase.on helper to include the fired event object when calling the handler
tags/v0.8.6^2
Shaun
3 лет назад
Родитель
d792503a57
Сommit
7b4e9bf360
1 измененных файлов
:
6 добавлений
и
5 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+6
-5
src/client/ui/uiBase.js
+ 6
- 5
src/client/ui/uiBase.js
Просмотреть файл
@@ -48,6 +48,10 @@ define([
this.registerUiEvents();
this.shown = this.el.is(':visible');
events.emit('onAfterRenderUi', {
ui: this
});
},
registerUiEvents: function () {
@@ -69,11 +73,8 @@ define([
else
el = $(el);
el.on(eventName, function () {
let args = [].slice.call(arguments, 1);
args.splice(0, 0, eventName);
callback.apply(null, args);
el.on(eventName, function (e) {
callback(e, eventName);
});
},
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить