Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
gitlord
/
isleward
espelhamento de
https://gitlab.com/Isleward/isleward.git
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
203
Wiki
Atividade
Ver código fonte
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 anos atrás
pai
d792503a57
commit
7b4e9bf360
1 arquivos alterados
com
6 adições
e
5 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+6
-5
src/client/ui/uiBase.js
+ 6
- 5
src/client/ui/uiBase.js
Ver arquivo
@@ -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é-visualização
Carregando…
Cancelar
Salvar