Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ajax_helpers.js | ||
page_helpers.js | ||
spec_helpers.js | ||
template_helpers.js | ||
view_helpers.js |
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 |
---|---|---|
.. | ||
ajax_helpers.js | Loading commit data... | |
page_helpers.js | Loading commit data... | |
spec_helpers.js | Loading commit data... | |
template_helpers.js | Loading commit data... | |
view_helpers.js | Loading commit data... |