Kill AddMenuEntry event.
Appchan never had it anyways
This commit is contained in:
parent
4afbd91bf8
commit
868de5b7b7
@ -6898,17 +6898,6 @@
|
|||||||
this.onFocus = __bind(this.onFocus, this);
|
this.onFocus = __bind(this.onFocus, this);
|
||||||
this.keybinds = __bind(this.keybinds, this);
|
this.keybinds = __bind(this.keybinds, this);
|
||||||
this.close = __bind(this.close, this);
|
this.close = __bind(this.close, this);
|
||||||
$.on(d, 'AddMenuEntry', (function(_this) {
|
|
||||||
return function(_arg) {
|
|
||||||
var detail;
|
|
||||||
detail = _arg.detail;
|
|
||||||
if (detail.type !== _this.type) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
delete detail.open;
|
|
||||||
return _this.addEntry(detail);
|
|
||||||
};
|
|
||||||
})(this));
|
|
||||||
this.entries = [];
|
this.entries = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6916,17 +6916,6 @@
|
|||||||
this.onFocus = __bind(this.onFocus, this);
|
this.onFocus = __bind(this.onFocus, this);
|
||||||
this.keybinds = __bind(this.keybinds, this);
|
this.keybinds = __bind(this.keybinds, this);
|
||||||
this.close = __bind(this.close, this);
|
this.close = __bind(this.close, this);
|
||||||
$.on(d, 'AddMenuEntry', (function(_this) {
|
|
||||||
return function(_arg) {
|
|
||||||
var detail;
|
|
||||||
detail = _arg.detail;
|
|
||||||
if (detail.type !== _this.type) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
delete detail.open;
|
|
||||||
return _this.addEntry(detail);
|
|
||||||
};
|
|
||||||
})(this));
|
|
||||||
this.entries = [];
|
this.entries = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -22,11 +22,6 @@ UI = do ->
|
|||||||
lastToggledButton = null
|
lastToggledButton = null
|
||||||
|
|
||||||
constructor: (@type) ->
|
constructor: (@type) ->
|
||||||
# XXX AddMenuEntry event is deprecated
|
|
||||||
$.on d, 'AddMenuEntry', ({detail}) =>
|
|
||||||
return if detail.type isnt @type
|
|
||||||
delete detail.open
|
|
||||||
@addEntry detail
|
|
||||||
@entries = []
|
@entries = []
|
||||||
|
|
||||||
makeMenu: ->
|
makeMenu: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user