summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2015-01-23 16:35:21 +0100
committerJérome Maes <jem@openerp.com>2015-01-23 17:03:24 +0100
commit8a51dc4e0246bd3b45ade3be6f3fb65c9eb7603b (patch)
tree6bc19bf80d116ebfb7b0dd41e711ace217f41837 /addons/web/static/src/js
parentfc82a774cd842d328bb0f930dce1a0837928e29d (diff)
[IMP] web : remove unused code of systrayMenu
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/chrome.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js
index c316eafbee5..a494bb1a7e4 100644
--- a/addons/web/static/src/js/chrome.js
+++ b/addons/web/static/src/js/chrome.js
@@ -305,7 +305,7 @@ instance.web.CrashManager = instance.web.Class.extend({
}
this.show_warning(error);
- //InternalError
+ //InternalError
} else {
this.show_error(error);
@@ -805,7 +805,6 @@ instance.web.SystrayMenu = instance.web.Widget.extend({
init: function(parent) {
this._super(parent);
this.items = [];
- this.widgets = [];
this.load = $.Deferred();
},
start: function() {
@@ -820,19 +819,9 @@ instance.web.SystrayMenu = instance.web.Widget.extend({
var self = this;
_.each(instance.web.SystrayItems, function(widgetCls) {
var cur_systray_item = new widgetCls(self);
- self.widgets.push(cur_systray_item);
self.items.push(cur_systray_item.appendTo(self.$el));
});
},
- get_widget: function(searched_class){
- for (i = 0; i < this.widgets.length; i++) {
- var current = this.widgets[i];
- if(current instanceof searched_class){
- return current;
- }
- }
- return undefined;
- }
});
instance.web.Menu = instance.web.Widget.extend({