Yep, will fix. Also converting this event to use CustomEvent's standard 
'detail' property rather than hoisting properties directly on the event 
object.

On 4/1/14, 10:24 AM, Miller Medeiros wrote:
> In apps/clock/js/panels/timer/main.js:
>
>> @@ -97,14 +99,10 @@ Timer.Panel = function(element) {
>>    this.soundButton = new FormButton(sound, soundMenuConfig);
>>    this.soundButton.refresh();
>>
>> -  mozL10n.translate(this.element);
>> -
>> -  View.instance(element, Timer.Panel).on(
>> -    'visibilitychange', this.onvisibilitychange.bind(this)
>> -  );
>> +  element.addEventListener('panel-visibilitychange',
>> +                           this.onvisibilitychange.bind(this));
>
> I think you forgot to change the
> |Timer.Panel.prototype.onvisibilitychange| signature to accept an event
> object instead of just a boolean flag.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mozilla-b2g/gaia/pull/16746/files#r11170685>.
>