move invalidation before $out processing
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 19 Oct 2010 15:35:23 +0000 (17:35 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 19 Oct 2010 15:35:23 +0000 (17:35 +0200)
commit3d2c63f62e809cf0985da5174429bf31cc2724b7
tree690325ad6efdabaeb43f5ed04efc2096303d3be9
parent082e7ddb179205a9914ad76dc6a4d99fabfb28c3
move invalidation before $out processing

This change allows us to write sequences like this:

$out->{eprints_id} ||= 700;
$update->{eprints_id} = $out->{eprints_id}++;

We use $out like global variable, and increment values for all
filtered fields
lib/MojoFacets/Data.pm