[fix bug 776944] Define event before using it.
[fix bug 776944] Define event before using it.

flamingspaz/remo,akatsoulas/remo,tsmrachel/remo,abdullah2891/remo,mozilla/remo,flamingspaz/remo,tsmrachel/remo,chirilo/remo,flamingspaz/remo,Mte90/remo,Mte90/remo,johngian/remo,abdullah2891/remo,abdullah2891/remo,chirilo/remo,mozilla/remo,mozilla/remo,abdullah2891/remo,mozilla/remo,chirilo/remo,tsmrachel/remo,johngian/remo,akatsoulas/remo,akatsoulas/remo,Mte90/remo,Mte90/remo,chirilo/remo,akatsoulas/remo,johngian/remo,tsmrachel/remo,johngian/remo,flamingspaz/remo