petele/Chrome-Helper-Libraries — comment on commit a64da06eae143837466c69357950edfbf2a3950a
File: js/webNotifications.js line 52
By mikewest:

I'd suggest refactoring these blocks out into a constructor (which would also give you the opportunity to define a clear return type). I'l type something up quickly.