Browse Source

Wrap Dictionary value in Variant()

Michael Ragazzon 5 years ago
parent
commit
c21bc50407
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/Core/Element.cpp

+ 3 - 1
Source/Core/Element.cpp

@@ -2389,8 +2389,10 @@ void Element::AdvanceAnimations()
 
 		for (auto it = it_completed; it != animations.end(); ++it)
 		{
+			const String& property_name = StyleSheetSpecification::GetPropertyName(it->GetPropertyId());
+
 			dictionary_list.emplace_back();
-			dictionary_list.back().emplace("property", StyleSheetSpecification::GetPropertyName(it->GetPropertyId()));
+			dictionary_list.back().emplace("property", Variant(property_name));
 			is_transition.push_back(it->IsTransition());
 
 			// Remove completed transition- and animation-initiated properties.