From efc1fee2421db6f80f730d3d075ebde59534a76c Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Mon, 15 Dec 2014 17:38:03 +0000 Subject: [PATCH] Fix javascript iteration through array for(var k in config) was assigning k to the properties of Array, not just the numeric indices the second argument of add_buttons_group, k[1], should be config[k][1] --- IPython/html/static/notebook/js/toolbar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IPython/html/static/notebook/js/toolbar.js b/IPython/html/static/notebook/js/toolbar.js index eba6e110d..a008a0def 100644 --- a/IPython/html/static/notebook/js/toolbar.js +++ b/IPython/html/static/notebook/js/toolbar.js @@ -26,8 +26,8 @@ define([ ToolBar.prototype.construct = function (config) { - for(var k in config){ - this.add_buttons_group(config[k][0],k[1]); + for(var k=0; k