Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use id function for selection elements in two places that were not usi... #463

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ QUnit.load = function() {

addEvent( filter, "click", function() {
var tmp,
ol = document.getElementById( "qunit-tests" );
ol = id( "qunit-tests" );

if ( filter.checked ) {
ol.className = ol.className + " hidepass";
Expand All @@ -1156,7 +1156,7 @@ QUnit.load = function() {
if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem( "qunit-filter-passed-tests" ) ) {
filter.checked = true;
// `ol` initialized at top of scope
ol = document.getElementById( "qunit-tests" );
ol = id( "qunit-tests" );
ol.className = ol.className + " hidepass";
}
toolbar.appendChild( filter );
Expand Down