diff options
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 78c4f7d..61c9fc7 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -141,11 +141,14 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { this.checkComments(); // set default assignee on change of the component - this.doc.getElementById("component").addEventListener("change", - function() { - that.component = that.getOptionValue("component"); - that.changeAssignee("default"); - }, false); + var compElement = this.doc.getElementById("component"); + if (compElement && (compElement.options)) { + this.doc.getElementById("component").addEventListener("change", + function() { + that.component = that.getOptionValue("component"); + that.changeAssignee("default"); + }, false); + } }; // END OF RHBugzillaPage CONSTRUCTOR |