Simplify createIterator.

Former-commit-id: 0530a9db49488900843c6312cc0d30b1dc641120
This commit is contained in:
John-David Dalton
2012-10-06 13:56:09 -07:00
parent 4a6e17b214
commit 436ee34a02
4 changed files with 73 additions and 79 deletions

View File

@@ -1318,7 +1318,7 @@
.replace(/__p *\+= *' *';/g, '')
.replace(/(__p *\+= *)' *' *\+/g, '$1')
.replace(/(\{) *;|; *(\})/g, '$1$2')
.replace(/\(\(__t *= *\( *([^)]+) *\)\) *== *null *\? *'' *: *__t\)/g, '$1');
.replace(/\(\(__t *= *\( *([^)]+) *\)\) *== *null *\? *'' *: *__t\)/g, '($1)');
// remove the with-statement
snippet = snippet.replace(/ *with *\(.+?\) *{/, '\n').replace(/}([^}]*}[^}]*$)/, '$1');