| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| applets/capa | ||
| coffee | ||
| common | ||
| css | ||
| data/geoip | ||
| fonts | ||
| images | ||
| js | ||
| sass | ||
| scripts | ||
| .gitignore | ||
| js_test.yml | ||
| js_test_requirejs.yml |
Both of them dynamically generate specs which close over the iteration variable of a for loop. Closures capture *references*, not values, and so when the variable is mutated on loop iteration its new value is used when the spec is called. This means that instead of running a spec with n different values, we run the spec n times with the same value. This is bad.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| applets/capa | Loading commit data... | |
| coffee | Loading commit data... | |
| common | Loading commit data... | |
| css | Loading commit data... | |
| data/geoip | Loading commit data... | |
| fonts | Loading commit data... | |
| images | Loading commit data... | |
| js | Loading commit data... | |
| sass | Loading commit data... | |
| scripts | Loading commit data... | |
| .gitignore | Loading commit data... | |
| js_test.yml | Loading commit data... | |
| js_test_requirejs.yml | Loading commit data... |