lib/glimmer/data_binding/model_binding.rb in glimmer-1.0.6 vs lib/glimmer/data_binding/model_binding.rb in glimmer-1.0.7

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (c) 2007-2020 Andy Maleh +# Copyright (c) 2007-2021 Andy Maleh # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, @@ -207,10 +207,10 @@ end def call(value) return if model.nil? converted_value = value - invoke_property_writer(model, "#{property_name}=", converted_value) unless evaluate_property == converted_value + invoke_property_writer(model, "#{property_name}=", converted_value) unless converted_value == evaluate_property end def evaluate_property value = nil value = invoke_property_reader(model, property_name) unless model.nil?