Bug 1121471 - Remove use of expression closures from browser-ctrlTab.js. r=dao
authorVikram Jadhav <vikramcse.10@gmail.com>
Tue, 20 Jan 2015 09:31:41 +0100
changeset 224677 bac9e28a8d6cec21a699c8ed3e54aff2e2204554
parent 224676 a74557453c80135c60a07d96d95422374797d782
child 224678 424565376b6c958f9db79b594f9c6c586019c9cb
push id28142
push userryanvm@gmail.com
push dateWed, 21 Jan 2015 01:49:16 +0000
treeherdermozilla-central@0bca66c907ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1121471
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1121471 - Remove use of expression closures from browser-ctrlTab.js. r=dao
browser/base/content/browser-ctrlTab.js
--- a/browser/base/content/browser-ctrlTab.js
+++ b/browser/base/content/browser-ctrlTab.js
@@ -179,22 +179,30 @@ var ctrlTab = {
       keys[key] = document.getElementById("key_" + key)
                           .getAttribute("key")
                           .toLocaleLowerCase().charCodeAt(0);
     });
     delete this.keys;
     return this.keys = keys;
   },
   _selectedIndex: 0,
-  get selected () this._selectedIndex < 0 ?
-                    document.activeElement :
-                    this.previews.item(this._selectedIndex),
-  get isOpen   () this.panel.state == "open" || this.panel.state == "showing" || this._timer,
-  get tabCount () this.tabList.length,
-  get tabPreviewCount () Math.min(this.maxTabPreviews, this.tabCount),
+  get selected () {
+    return this._selectedIndex < 0 ?
+             document.activeElement :
+             this.previews.item(this._selectedIndex);
+  },
+  get isOpen () {
+    return this.panel.state == "open" || this.panel.state == "showing" || this._timer;
+  },
+  get tabCount () {
+    return this.tabList.length;
+  },
+  get tabPreviewCount () {
+    return Math.min(this.maxTabPreviews, this.tabCount);
+  },
 
   get tabList () {
     return this._recentlyUsedTabs;
   },
 
   init: function ctrlTab_init() {
     if (!this._recentlyUsedTabs) {
       tabPreviews.init();