Kill AddMenuEntry event.

Appchan never had it anyways
This commit is contained in:
Zixaphir 2015-01-13 15:28:08 -07:00
parent 4afbd91bf8
commit 868de5b7b7
3 changed files with 0 additions and 27 deletions

View File

@ -6898,17 +6898,6 @@
this.onFocus = __bind(this.onFocus, this);
this.keybinds = __bind(this.keybinds, 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 = [];
}

View File

@ -6916,17 +6916,6 @@
this.onFocus = __bind(this.onFocus, this);
this.keybinds = __bind(this.keybinds, 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 = [];
}

View File

@ -22,11 +22,6 @@ UI = do ->
lastToggledButton = null
constructor: (@type) ->
# XXX AddMenuEntry event is deprecated
$.on d, 'AddMenuEntry', ({detail}) =>
return if detail.type isnt @type
delete detail.open
@addEntry detail
@entries = []
makeMenu: ->