lib/glimmer/data_binding/model_binding.rb in glimmer-0.7.1 vs lib/glimmer/data_binding/model_binding.rb in glimmer-0.7.2
- old
+ new
@@ -201,13 +201,12 @@
converted_value = value
invoke_property_writer(model, "#{property_name}=", converted_value) unless evaluate_property == converted_value
end
def evaluate_property
- unless model.nil?
- value = invoke_property_reader(model, property_name)
- convert_on_read(value)
- end
+ value = nil
+ value = invoke_property_reader(model, property_name) unless model.nil?
+ convert_on_read(value)
end
def evaluate_options_property
model.send(options_property_name) unless model.nil?
end