From fcd626ddf7dc7236d7d49a456e29c36f6de4bb4a Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Wed, 17 May 2017 13:18:39 +0300 Subject: [PATCH] Update Modules30Changes.md --- Modules30Changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules30Changes.md b/Modules30Changes.md index a8ecf6d1f..0d4db37ab 100644 --- a/Modules30Changes.md +++ b/Modules30Changes.md @@ -152,7 +152,7 @@ There are several type of Properties in modules 3.0: * `InheritedCssProperty `- property defined on `Style` type. These are inheritable CSS properties that could be set in CSS and propagates value on its children. These are properties like `FontSize`, `FontWeight`, `Color`, etc. ### Events raised when property value change -One significant change is that properties before 3.0 were raising two events when a value is changed - `propertyChange` and propertyName + `Change` (like `textChange`). The second event was added at some point to make module compatible with Anglular. +One significant change is that properties before 3.0 were raising two events when a value is changed - `propertyChange` and propertyName + `Change` (like `textChange`). The second event was added at some point to make module compatible with Angular. With 3.0 we removed `propertyChange` event and left only the second event. This was done in order to improve performance of our property system. This also leads to cleaner code (no need to listen for every `propertyChange` and then check the name of the poperty that raised the event). With 3.0 if you want to get notification when some property value change you have to specify the *`propertyName`Change* as eventName to `addEventListener` method (like `textField.addEventListener('textChange'`, handler...)).