Index: trunk/extensions/ContributorsAddon/ContributorsAddon.js |
— | — | @@ -8,8 +8,8 @@ |
9 | 9 | */ |
10 | 10 | |
11 | 11 | function setupContributionsAddon() { |
12 | | - var contributorsLink = document.getElementById('t-contributors').firstChild; |
13 | | - if (contributorsLink != null) { |
| 12 | + if (document.getElementById('t-contributors')) { |
| 13 | + var contributorsLink = document.getElementById('t-contributors').firstChild; |
14 | 14 | contributorsLink.onmouseover = showContributors; |
15 | 15 | contributorsLink.onmouseout = hideContributors; |
16 | 16 | var cDiv = document.createElement('div'); |