Skip to content

Commit

Permalink
Some minor tweaks to RyanS' GETParams change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Nov 5, 2009
1 parent 77cc691 commit 958c03f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,15 @@ var config = {
(function() {
var location = window.location || { search: "", protocol: "file:" },
GETParams = location.search.slice(1).split('&');

for ( var i = 0; i < GETParams.length; i++ ) {
GETParams[i] = decodeURIComponent( GETParams[i] );
if ( GETParams[i] === "noglobals" ) {
GETParams.splice( i, 1 );
i--;
config.noglobals = true;
}
else if ( GETParams[i].search('=') != -1 ) {
GETParams.splice( i, 1 );
} else if ( GETParams[i].search('=') > -1 ) {
GETParams.splice( i, 1 );
i--;
}
}
Expand Down

0 comments on commit 958c03f

Please sign in to comment.