Commit d6e174b
committed
limiting for slow function and operator fix (pangloss#455)
* prevent repeated calls of searchpair
```
var magicWords = ['abracadabra', 'gesundheit', 'ventrilo'],
spells = {
'fireball': function() {
setOnFire()
},
'water': function() {
putOut()
}
},
a = 1,
b = 'abc',
etc, somethingElse
someFunc(param1, param2,
param3, param4)
```
at the line which starts with a curly brace followed by a comment this was added for traversing the comma less property lines, however this only needs to be called once.this improves performance when using the endline operator style
an operator would previously create an unnecessary indent when following a line which was the first of a list of block enclosed items, e.g. a array, function call, or object
before:
```
vardefaultModules = {
'http:': http
,'https:': https
}
```
after:
```
vardefaultModules = {
'http:': http
,'https:': https
}
```1 parent 5962584 commit d6e174b
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | | - | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | | - | |
| 206 | + | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
381 | 383 | | |
382 | 384 | | |
383 | 385 | | |
384 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
385 | 389 | | |
386 | 390 | | |
387 | 391 | | |
| |||
0 commit comments