Permalink
Browse files

removed invalid access modifier from javascript in HtmlCoverageReport

  • Loading branch information...
1 parent 2650bd4 commit 1e9af715cc800eb82143775deafc8ee559c40296 @hiromi2424 hiromi2424 committed Jun 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/TestSuite/Coverage/HtmlCoverageReport.php
@@ -138,11 +138,11 @@ protected function _paintLine($line, $linenumber, $class, $coveringTests) {
public function coverageScript() {
return <<<HTML
<script type="text/javascript">
- public function coverage_show_hide(selector) {
+ function coverage_show_hide(selector) {
var element = document.getElementById(selector);
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 i = divs.length;
while (i--) {

0 comments on commit 1e9af71

Please sign in to comment.