Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
gitlord
/
isleward
réplica de
https://gitlab.com/Isleward/isleward.git
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
203
Wiki
Actividad
Explorar el Código
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
hace 3 años
padre
d792503a57
commit
7b4e9bf360
Se han
modificado 1 ficheros
con
6 adiciones
y
5 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+6
-5
src/client/ui/uiBase.js
+ 6
- 5
src/client/ui/uiBase.js
Ver fichero
@@ -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);
});
},
Escribir
Vista previa
Cargando…
Cancelar
Guardar