##// END OF EJS Templates
Fix javascript iteration through array...
Jason Grout -
Show More
@@ -26,8 +26,8 define([
26 26
27 27
28 28 ToolBar.prototype.construct = function (config) {
29 for(var k in config){
30 this.add_buttons_group(config[k][0],k[1]);
29 for(var k=0; k<config.length; k++) {
30 this.add_buttons_group(config[k][0],config[k][1]);
31 31 }
32 32 };
33 33
@@ -54,7 +54,7 define([
54 54 * ]
55 55 *
56 56 * For backward compatibility this also support the
57 * old methods of adding busson directly bound to callbacks:
57 * old methods of adding a button directly bound to callbacks:
58 58 * @example
59 59 * # deprecate, do not use
60 60 * IPython.toolbar.add_buttons_group([
General Comments 0
You need to be logged in to leave comments. Login now