From 958c03fbab15c7fd9b607a3961e92e66b3861814 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 5 Nov 2009 14:14:46 +0100 Subject: [PATCH] Some minor tweaks to RyanS' GETParams change. --- qunit/qunit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qunit/qunit.js b/qunit/qunit.js index ea8ce7f61..8d814b771 100644 --- a/qunit/qunit.js +++ b/qunit/qunit.js @@ -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--; } }