From 8cad056a1656e8d0b44f0b13e31728c7f926df28 2014-01-11 19:46:07 From: Sylvain Corlay Date: 2014-01-11 19:46:07 Subject: [PATCH] Replacing a for-in loop by an index loop on an array, to avoid enumerating inherited properties --- diff --git a/IPython/html/static/notebook/js/cell.js b/IPython/html/static/notebook/js/cell.js index 502df10..384bd36 100644 --- a/IPython/html/static/notebook/js/cell.js +++ b/IPython/html/static/notebook/js/cell.js @@ -313,9 +313,9 @@ var IPython = (function (IPython) { for( var mode in modes) { var regs = modes[mode]['reg']; // only one key every time but regexp can't be keys... - for(var reg in regs ) { + for(var i=0; i