Mercurial > projects > dwt-addons
diff dwtx/dwtxhelper/Bean.d @ 179:9008cb2f47c5
Fix tango.core.Array.remove use
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 19 Sep 2008 22:37:04 +0200 |
parents | 5a082a5e1a5b |
children |
line wrap: on
line diff
--- a/dwtx/dwtxhelper/Bean.d Mon Sep 15 03:42:10 2008 +0200 +++ b/dwtx/dwtxhelper/Bean.d Fri Sep 19 22:37:04 2008 +0200 @@ -79,7 +79,7 @@ } void removePropertyChangeListener(String propertyName, PropertyChangeListener listener){ if( auto list = propertyName in listeners ){ - tango.core.Array.remove( *list, listener ); + list.length = tango.core.Array.remove( *list, listener ); if( list.length > 0 ){ listeners[ propertyName.dup ] = *list; }