Bug 1025316 - change the prototype of steelApplication.js to not produce warning about mutating the [[Prototype]] of an object. r=standard8
--HG-- extra : amend_source : be3cbad75555a5e5ce3d155d499ebc824effdde8 extra : histedit_source : 2c7795db3d02325803f19732290178087e16ad17
This commit is contained in:
Родитель
ed45854c35
Коммит
967f51bc57
|
@ -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]);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче