Skip to content

Commit

Permalink
API Prep DataList for immutability in 3.1 per 7673
Browse files Browse the repository at this point in the history
DataList had several methods that should act on a copy and return
that copy, but was instead mutating the existing list.

We cant change this behaviour in the 3.0 line for backwards compt.
reasons, but this makes the desired behavior the default, and
makes disabling the mutation in 3.1 easier

It also introduces two new methods to deal with the common pattern
of wanting to modify the underlying dataQuery, which we want to be
able to reliably do in a way that always acts immutably. The main
method of these two is alterDataQuery
  • Loading branch information
Hamish Friedlander committed Jul 20, 2012
1 parent 1ed41b8 commit e8e4604
Showing 1 changed file with 230 additions and 93 deletions.

0 comments on commit e8e4604

Please sign in to comment.