Merge pull request #75 from tjvantoll/typo-fix

Events: Typo fix
This commit is contained in:
Stefan Dobrev 2015-04-16 21:47:16 +03:00
commit 922e8a563c
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ Though the radio station comparison is convenient for understanding the concept,
Consider this scenario: A UI element creates a lot of child controls, each of which hooks to an event of the parent. Then a child control is released (during a list view scrolling for instance), causing a memory leak.
To prevent these memory leaks, it is good practice to remove your event listener handler before releasing the listener object. Unfortunately, sometimes you can't determine the exact time to call the `off` or `removeEventListener` function. In such cases use another option of the NativeScript framework: Week Events.
To prevent these memory leaks, it is good practice to remove your event listener handler before releasing the listener object. Unfortunately, sometimes you can't determine the exact time to call the `off` or `removeEventListener` function. In such cases use another option of the NativeScript framework: Weak Events.
## Working with Weak Events