mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1015794 - avoid mutating the prototype of a timer object to prevent warnings. r=rnewman
This commit is contained in:
parent
73f70065a1
commit
ac6fb3ba21
@ -166,8 +166,9 @@ this.CommonUtils = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create a special timer that we can add extra properties
|
// Create a special timer that we can add extra properties
|
||||||
let timer = {};
|
let timer = {
|
||||||
timer.__proto__ = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
__proto__: Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer),
|
||||||
|
};
|
||||||
|
|
||||||
// Provide an easy way to clear out the timer
|
// Provide an easy way to clear out the timer
|
||||||
timer.clear = function() {
|
timer.clear = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user