removed invalid access modifier from javascript in HtmlCoverageReport

This commit is contained in:
hiromi2424 2011-06-03 10:51:47 +09:00
parent 2650bd4639
commit 1e9af715cc

View file

@ -138,11 +138,11 @@ HTML;
public function coverageScript() { public function coverageScript() {
return <<<HTML return <<<HTML
<script type="text/javascript"> <script type="text/javascript">
public function coverage_show_hide(selector) { function coverage_show_hide(selector) {
var element = document.getElementById(selector); var element = document.getElementById(selector);
element.style.display = (element.style.display == 'none') ? '' : 'none'; element.style.display = (element.style.display == 'none') ? '' : 'none';
} }
public function coverage_toggle_all () { function coverage_toggle_all () {
var divs = document.querySelectorAll('div.coverage-container'); var divs = document.querySelectorAll('div.coverage-container');
var i = divs.length; var i = divs.length;
while (i--) { while (i--) {