Initialize properties with nil rather than an empty hash.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 7 Oct 2006 18:28:41 +0000 (20:28 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sat, 7 Oct 2006 18:28:41 +0000 (20:28 +0200)
This made only sense in the past before propdicts were introduced.

lib/playlist_item.rb

index 2a2deac..f3d397f 100644 (file)
@@ -15,7 +15,7 @@ class PlaylistItem
                @selected = false
                @hilighted = false
 
-               @props = {}
+               @props = nil
 
                @xmms.medialib_get_info(id).notifier do |res|
                        self.properties = res.value