diff --git a/mail/steel/steelApplication.js b/mail/steel/steelApplication.js index 6d9692f472..b981fb3a5d 100644 --- a/mail/steel/steelApplication.js +++ b/mail/steel/steelApplication.js @@ -29,12 +29,16 @@ var ApplicationFactory = { } }; +#include ../../mozilla/toolkit/components/exthelper/extApplication.js + function Application() { this.initToolkitHelpers(); } - Application.prototype = { + // set the proto, defined in extApplication.js + __proto__: extApplication.prototype, + classID: APPLICATION_CID, // redefine the default factory for XPCOMUtils @@ -62,9 +66,5 @@ Application.prototype = { platformIsWindows: "@mozilla.org/windows-registry-key;1" in Cc }; -#include ../../mozilla/toolkit/components/exthelper/extApplication.js - -Application.prototype.__proto__ = extApplication.prototype; - const NSGetFactory = XPCOMUtils.generateNSGetFactory([Application]);