From 855fd6f923121c1fe7c35b2f588ca469004b9671 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Wed, 7 Dec 2011 07:51:30 +0100 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 --- IPython/frontend/html/notebook/static/js/codecell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index a8a3b4733..e34bb6991 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; }