зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1207490 - Part 15: Remove use of expression closure from browser/modules/WindowsPreviewPerTab.jsm. r=Gijs
--HG-- extra : commitid : KDTESg7GzbI extra : rebase_source : 5660fc22ca05c115fd070f6d922ab712f657f274
This commit is contained in:
Родитель
533e9211c3
Коммит
f5fc9534a9
|
@ -315,8 +315,7 @@ PreviewController.prototype = {
|
|||
},
|
||||
|
||||
drawPreview: function (ctx) {
|
||||
let self = this;
|
||||
this.win.tabbrowser.previewTab(this.tab, function () self.previewTabCallback(ctx));
|
||||
this.win.tabbrowser.previewTab(this.tab, () => this.previewTabCallback(ctx));
|
||||
|
||||
// We must avoid having the frame drawn around the window. See bug 520807
|
||||
return false;
|
||||
|
@ -749,7 +748,7 @@ this.AeroPeek = {
|
|||
}
|
||||
};
|
||||
|
||||
XPCOMUtils.defineLazyGetter(AeroPeek, "cacheTimer", function ()
|
||||
XPCOMUtils.defineLazyGetter(AeroPeek, "cacheTimer", () =>
|
||||
Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer)
|
||||
);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче