Index: chrome/content/ui/progressBar.js |
=================================================================== |
--- a/chrome/content/ui/progressBar.js |
+++ b/chrome/content/ui/progressBar.js |
@@ -27,20 +27,26 @@ |
progressBar = document.getElementById("progressBar"); |
canvas = document.getElementById("progressBarCanvas"); |
headers = Array.prototype.slice.call(progressBar.getElementsByTagName("label")); |
for (let i = 0; i < headers.length; i++) |
canvas.parentNode.appendChild(headers[i]); |
// Expose properties |
- progressBar.__defineGetter__("activeItem", getActiveItem); |
- progressBar.__defineSetter__("activeItem", setActiveItem); |
- progressBar.__defineGetter__("activeItemComplete", getActiveItemComplete); |
- progressBar.__defineSetter__("activeItemComplete", setActiveItemComplete); |
+ Object.defineProperty(progressBar, "activeItem", |
+ { |
+ get: getActiveItem, |
+ set: setActiveItem |
+ }); |
+ Object.defineProperty(progressBar, "activeItemComplete", |
+ { |
+ get: getActiveItemComplete, |
+ set: setActiveItemComplete |
+ }); |
isRTL = (window.getComputedStyle(document.documentElement).direction == "rtl"); |
// Run actual drawing delayed, once the sizes are fixed |
window.setTimeout(init, 0); |
}; |
window.addEventListener("load", onLoad, false); |