Bug 1030310 - [B2G][Email] Device does not vibrate upon receiving an email notification while in sleep mode

This is good that you factored this out into a function, but wrapping the assignment in a closure like this is a little weird. The closure doesn't buy us anything in this case.