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
This commit is contained in:
Matthias BUSSONNIER 2011-12-07 07:51:30 +01:00
parent 44c959f88b
commit 855fd6f923

View File

@ -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;
}