From 868de5b7b7e879e50ea48f32a50089308d1db9b6 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 13 Jan 2015 15:28:08 -0700 Subject: [PATCH] Kill AddMenuEntry event. Appchan never had it anyways --- builds/appchan-x.user.js | 11 ----------- builds/crx/script.js | 11 ----------- src/General/UI.coffee | 5 ----- 3 files changed, 27 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index da9c89a24..1aa7fdbd2 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -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 = []; } diff --git a/builds/crx/script.js b/builds/crx/script.js index 7b781ff0a..46083fc2d 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -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 = []; } diff --git a/src/General/UI.coffee b/src/General/UI.coffee index 07635b8f5..1c95f5c94 100755 --- a/src/General/UI.coffee +++ b/src/General/UI.coffee @@ -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: ->