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
Matthias BUSSONNIER 15 years ago
parent 44c959f88b
commit 855fd6f923

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

Loading…
Cancel
Save