Changes between Version 1 and Version 3 of Ticket #3826


Ignore:
Timestamp:
03/18/2016 03:36:35 PM (4 years ago)
Author:
kzar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3826

    • Property Cc greiner added
  • Ticket #3826 – Description

    v1 v3  
    11=== Background === 
    2 Some code currently responds to preference changes through `Prefs.onChanged.addListener()`, using always the same builerplate to bail out unless a particular preference was changed. So it would be preferable if you could specify the preference when adding the callback which then only gets called for that preference. 
     2Some code currently responds to preference changes through `Prefs.onChanged.addListener()`, using always the same boilerplate to bail out unless a particular preference was changed. So it would be preferable if you could specify the preference when adding the callback which then only gets called for that preference. 
    33 
    4 Also, this is a good oppertunity to align `prefs.Prefs` with `messaging.Port` (#3823), replacing `Pref.onChanged.addListener`/`removeListener` with `Prefs.on`/`off`. 
     4Also, this is a good opportunity to align `prefs.Prefs` with `messaging.Port` (#3823), replacing `Pref.onChanged.addListener`/`removeListener` with `Prefs.on`/`off`. 
    55 
    66=== What to change ===