From 552a5a02449bef0dc91045109fb23b5ee8862877 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Fri, 18 Sep 2015 10:06:34 -0700 Subject: [PATCH] make sure to loop only on dict keys --- notebook/static/notebook/js/menubar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notebook/static/notebook/js/menubar.js b/notebook/static/notebook/js/menubar.js index 6265a9d12..987229b2b 100644 --- a/notebook/static/notebook/js/menubar.js +++ b/notebook/static/notebook/js/menubar.js @@ -226,6 +226,9 @@ define([ }; for(var idx in id_actions_dict){ + if (!id_actions_dict.hasOwnProperty(idx)){ + continue; + } var id_act = id_actions_dict[idx]; if(!that.actions.exists(id_act)){ console.warn('actions', id_act, 'does not exist, still binding it in case it will be defined later...' )