From 3102cb94e097e20a6592527feaaf1fa039274f42 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 7 Jun 2010 19:06:05 +0200 Subject: Fix creation of non-existent logstore --- lib/bzpage.js | 4 ++-- lib/rhbzpage.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bzpage.js b/lib/bzpage.js index 8f11eb5..b02d03c 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -664,9 +664,9 @@ BZPage.prototype.setUpLogging = function() { console.log("this.store wiped out!"); }, false); - if (!this.store) { + if (!this.log.store) { console.log("No this.store defined!"); - this.store = {}; + this.log.store = {}; } if (this.log.store.length > 0) { diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index c9d9b9f..4c3d93f 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -603,7 +603,9 @@ RHBugzillaPage.prototype.queryForSelection = function() { * Search simple query in the upstream bugzilla appropriate for the component. */ RHBugzillaPage.prototype.queryUpstream = function() { + console.log("Querying upstream!"); let text = jetpack.selection.text; + console.log("Selection = |" + text + "|"); if (!text) { text = clip.get(); } -- cgit