Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
E.Z. Hart b4fe4e0c90 Make MessagingCenter testable (#723)
* Make MessagingCenter testable

* Eagerly create MessagingCenter instancef

* More succinct version
2017-01-31 13:10:28 +00:00
E.Z. Hart ebb24b7edd Fix overeager subscription cleanup (#712) 2017-01-24 22:25:44 +00:00
E.Z. Hart 58909e205a Allow subscriber to be collected if MessagingCenter is the only reference to it (#617)
* Repro

* Make messaging center callbacks weak references

* Preserve attribute

* Fix test method name

* Watch for collection of actual delegate target instead of wrapper delegate

* Preserve the original platform instance when changing main page

* Better tests for lambda situations

* Update tests, make callback target a weakreference if it's the subscriber

* Ensure old Platform MessagingCenter subs are gone before creating new Platform
2017-01-03 12:02:10 +00:00
adrianknight89 1f3d5ecd26 fix weakreferences (#558) 2016-11-24 20:34:46 +01:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00