Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit fc10c51

Browse files
author
kevinparkerson
committed
wrapping checkbox-test console.log in conditional check to prevent IE9 from failing
1 parent 8e3b135 commit fc10c51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/checkbox-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ define(function(require){
118118

119119
//this doesn't work right from terminal, but, if you open in browser you'll see 'changed' in console
120120
$chk1.on('change', function(){
121-
console.log('change fired');
121+
if(window.console && window.console.log) {
122+
console.log('change fired');
123+
}
122124
changeOccurred = true;
123125
});
124126

0 commit comments

Comments
 (0)