Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
Yardım
Üye Ol
Giriş Yap
gitlord
/
isleward
şunun yansıması
https://gitlab.com/Isleward/isleward.git
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Sürümler
203
Wiki
Aktivite
Kaynağa Gözat
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 yıl önce
ebeveyn
d792503a57
işleme
7b4e9bf360
1 değiştirilmiş dosya
ile
6 ekleme
ve
5 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+6
-5
src/client/ui/uiBase.js
+ 6
- 5
src/client/ui/uiBase.js
Dosyayı Görüntüle
@@ -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);
});
},
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet