jasmine/lib/jasmine-html.js in jasmine-1.0.0 vs jasmine/lib/jasmine-html.js in jasmine-1.0.1

- old
+ new

@@ -68,20 +68,20 @@ } this.startedAt = new Date(); var self = this; - showPassed.onchange = function(evt) { - if (evt.target.checked) { + showPassed.onclick = function(evt) { + if (showPassed.checked) { self.outerDiv.className += ' show-passed'; } else { self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, ''); } }; - showSkipped.onchange = function(evt) { - if (evt.target.checked) { + showSkipped.onclick = function(evt) { + if (showSkipped.checked) { self.outerDiv.className += ' show-skipped'; } else { self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, ''); } }; @@ -160,10 +160,16 @@ this.suiteDivs[spec.suite.id].appendChild(specDiv); }; jasmine.TrivialReporter.prototype.log = function() { var console = jasmine.getGlobal().console; - if (console && console.log) console.log.apply(console, arguments); + if (console && console.log) { + if (console.log.apply) { + console.log.apply(console, arguments); + } else { + console.log(arguments); // ie fix: console.log.apply doesn't exist on ie + } + } }; jasmine.TrivialReporter.prototype.getLocation = function() { return this.document.location; };