From b1cbd5f9f30e1aac3d8a39181999534204cdbadd 2011-12-07 07:03:37 From: Matthias BUSSONNIER Date: 2011-12-07 07:03:37 Subject: [PATCH] notebook: code Readability. Add dismissing symbols * As minrk suggested, changes list of char to string.split() * add also a few dismissing symbold like `,` `=` and `*` for the completer --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index a8a3b47..e34bb69 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -253,7 +253,7 @@ var IPython = (function (IPython) { }, dismissAndAppend : function (code) { - chararr = ['(',')','[',']','+','-','/','\\','.',' ']; + chararr = '()[]+-/\\. ,=*'.split(""); codearr = chararr.map(function(x){return x.charCodeAt(0)}); return jQuery.inArray(code, codearr) != -1; }