mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 800857 - Handle event listener objects added by plugins, r=past
This commit is contained in:
parent
78b0612db4
commit
75fc7a7e22
@ -1522,6 +1522,7 @@ EventListenersView.prototype = Heritage.extend(WidgetMethods, {
|
||||
this._eventCheckboxTooltip = L10N.getStr("eventCheckboxTooltip");
|
||||
this._onSelectorString = " " + L10N.getStr("eventOnSelector") + " ";
|
||||
this._inSourceString = " " + L10N.getStr("eventInSource") + " ";
|
||||
this._inNativeCodeString = L10N.getStr("eventNative");
|
||||
|
||||
this.widget.addEventListener("check", this._onCheck, false);
|
||||
this.widget.addEventListener("click", this._onClick, false);
|
||||
@ -1626,6 +1627,12 @@ EventListenersView.prototype = Heritage.extend(WidgetMethods, {
|
||||
group = L10N.getStr("otherEvents");
|
||||
}
|
||||
|
||||
// Some listener objects may be added from plugins, thus getting
|
||||
// translated to native code.
|
||||
if (!url) {
|
||||
url = this._inNativeCodeString;
|
||||
}
|
||||
|
||||
// Create the element node for the event listener item.
|
||||
let itemView = this._createItemView(type, selector, url);
|
||||
|
||||
@ -1751,7 +1758,8 @@ EventListenersView.prototype = Heritage.extend(WidgetMethods, {
|
||||
|
||||
_eventCheckboxTooltip: "",
|
||||
_onSelectorString: "",
|
||||
_inSourceString: ""
|
||||
_inSourceString: "",
|
||||
_inNativeCodeString: ""
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -81,6 +81,10 @@ eventInSource=in
|
||||
# an event is listened on more than one target node.
|
||||
eventNodes=%S nodes
|
||||
|
||||
# LOCALIZATION NOTE (eventNative): The text to display in the events tab when
|
||||
# a listener is added from plugins, thus getting translated to native code.
|
||||
eventNative=[native code]
|
||||
|
||||
# LOCALIZATION NOTE (*Events): The text to display in the events tab for
|
||||
# each group of sub-level event entries.
|
||||
animationEvents=Animation
|
||||
|
Loading…
Reference in New Issue
Block a user