From d74985b514afbab911ff7c56d52cdef272849504 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 12 Apr 2009 14:55:06 +0000 Subject: [PATCH] Minor JS fix for r49408 --- skins/common/wikibits.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index ca91418cb3..30686fb48e 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -431,7 +431,8 @@ function checkboxClickHandler(e) { } for (var i = start; i <= finish; ++i ) { checkboxes[i].checked = endState; - if( i > start ) checkboxes[i].onchange(); // fire triggers + if( i > start && typeof checkboxes[i].onchange == 'function' ) + checkboxes[i].onchange(); // fire triggers } lastCheckbox = this.index; return true; -- 2.20.1