summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-10-05 10:32:56 -0400
committerKris Maglione <maglione.k@gmail.com>2010-10-05 10:32:56 -0400
commit3da8b7af2a79ca7f4f64fe550c2c96398fe809e9 (patch)
tree66659b4a735c95c75452e4c6a559149347ca6203 /common/content/tabs.js
parentb9bf655fa2771c1fef34a183788d605b1e587512 (diff)
downloadpentadactyl-3da8b7af2a79ca7f4f64fe550c2c96398fe809e9.tar.gz
Allow :write! >>nonexistent.file
--HG-- extra : rebase_source : b446ad89bdbaf38f6091b2145a4b4be687eeb24d
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index 17f2cc8d..4b71f47b 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -182,9 +182,8 @@ const Tabs = Module("tabs", {
TabView._initFrame();
let iframe = document.getElementById("tab-view");
this._groups = this._groups = iframe ? iframe.contentWindow : null;
- if (this._groups)
- while (!this._groups.TabItems)
- util.threadYield(false, true);
+ while (this._groups && !this._groups.TabItems)
+ util.threadYield(false, true);
return this._groups;
},