properly tonekize regexp literals in JavaScript.

fix #140
This commit is contained in:
Fabian Jakobs 2011-07-26 16:00:40 +02:00
commit 4012c32a55
4 changed files with 76 additions and 27 deletions

View file

@ -115,7 +115,8 @@ var Editor =function(renderer, session) {
};
this.setSession = function(session) {
if (this.session == session) return;
if (this.session == session)
return;
if (this.session) {
var oldSession = this.session;