lib/timeline_source.rb in muruca_widgets-0.2.2 vs lib/timeline_source.rb in muruca_widgets-0.2.3
- old
+ new
@@ -110,11 +110,11 @@
options[:start_property] ||= N::DCNS.date
options[:title_property] ||= N::DCNS.title
options[:description_property] ||= N::DCNS.abstract
end
# More defaults
- options[:color] = 'blue'
- options[:text_color] = 'black'
+ options[:color] ||= 'blue'
+ options[:text_color] ||= 'black'
options
end
# Initializes the data from a pre-existing data array. This mainly converts the dates
# and fills in some fields automatically if they don't exist
\ No newline at end of file