|
|
@@ -33,7 +33,7 @@ public class IndirectObservableListener<C, T> {
|
|
|
*/
|
|
|
public void setObserved( T obs, Observable... extra ) {
|
|
|
Objects.requireNonNull( obs );
|
|
|
- if ( obs == model ) return;
|
|
|
+ if ( obs == model && (extra.length == 0 || extra[0] == obs) ) return;
|
|
|
// Make sure that we aren't listening to any of the previous things.
|
|
|
// This means that we can re-use objects instead of destroying and re-making a
|
|
|
// bunch of high-level GUI objects any time the model changes.
|