Bug 701804 - PageActions must be initialized before registering actions [r=mfinkle, a=javascript]

This commit is contained in:
Matt Brubeck 2011-12-12 12:14:05 -08:00
parent f30db52b9a
commit 9a439539c0

View File

@ -70,6 +70,7 @@ var PageActions = {
* @param aThisObj (optional) scope object for aCallback
*/
register: function register(aId, aCallback, aThisObj) {
this.init();
this._handlers.push({id: aId, callback: aCallback, obj: aThisObj});
},