mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1015794 - use Object.create to create services timer objects. r=rnewman
This commit is contained in:
parent
d601678fcc
commit
cb33929743
@ -166,9 +166,7 @@ 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 = Object.create(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