Index: trunk/extensions/ContributorsAddon/ContributorsAddon.js |
— | — | @@ -24,8 +24,8 @@ |
25 | 25 | } |
26 | 26 | |
27 | 27 | function showContributors() { |
28 | | - var contributorsDiv = document.getElementById('contributorsDiv'); |
29 | | - if (contributorsDiv != null) { |
| 28 | + if (document.getElementById('contributorsDiv')) { |
| 29 | + var contributorsDiv = document.getElementById('contributorsDiv'); |
30 | 30 | contributorsDiv.className = 'contributorsDivShow pBody'; |
31 | 31 | var arrCoords = findPos(document.getElementById('t-contributors')); |
32 | 32 | contributorsDiv.style.top = (arrCoords[1]-5) + 'px'; |
— | — | @@ -34,8 +34,8 @@ |
35 | 35 | } |
36 | 36 | |
37 | 37 | function hideContributors() { |
38 | | - var contributorsDiv = document.getElementById('contributorsDiv'); |
39 | | - if (contributorsDiv != null) { |
| 38 | + if (document.getElementById('contributorsDiv')) { |
| 39 | + var contributorsDiv = document.getElementById('contributorsDiv'); |
40 | 40 | contributorsDiv.className = 'contributorsDivHide'; |
41 | 41 | } |
42 | 42 | } |