Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Inscrição
Iniciar sessão
gitlord
/
isleward
espelho de
https://gitlab.com/Isleward/isleward.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
203
Wiki
Trabalho
Ver a proveniência
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
há 3 anos
ascendente
d792503a57
cometimento
7b4e9bf360
1 ficheiros alterados
com
6 adições
e
5 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+6
-5
src/client/ui/uiBase.js
+ 6
- 5
src/client/ui/uiBase.js
Ver ficheiro
@@ -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);
});
},
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar