Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing global var pollution.

  • Loading branch information...
commit 5534fbc1d115d41376db9f06e8693ed3119b706d 1 parent b982e2f
@ljharb ljharb authored gabrielschulhof committed
View
2  tests/jquery.testHelper.js
@@ -373,7 +373,7 @@
versionTest: function( l, t, r ) {
var lAr = l.split( "." ), lLength = lAr.length,
rAr = r.split( "." ), rLength = rAr.length,
- lVal, rVal, lRes = "", rRes = "", min, max, str, idx1, diff;
+ lVal, rVal, lRes = "", rRes = "", min, max, str, idx, idx1, diff;
for ( idx = 0 ; idx < lLength || idx < rLength ; idx++ ) {
str = {};
lVal = ( idx < lLength ? parseInt( lAr[ idx ] ) : 0 );
View
2  tests/unit/event/event_core.js
@@ -313,7 +313,7 @@
asyncTest( "stopImmediatePropagation() prevents tap propagation and execution of 2nd handler", function(){
var tap = 0,
- $cf = $( "#qunit-fixture" );
+ $cf = $( "#qunit-fixture" ),
$doc = $( document ),
docTapCB = function(){
ok(false, "tap should NOT be triggered on document");
View
2  tests/unit/listview/listview_core.js
@@ -717,7 +717,7 @@
module( "Programmatically generated list items", {
setup: function(){
- var item,
+ var label, item,
data = [
{
id: 1,
View
2  tests/unit/navigation/sequence-tests/sequence_tests.js
@@ -311,7 +311,7 @@
});
asyncTest( "Opening another page after returning from a popup works", function() {
- var eventNs = ".openingAnotherPageAfterPopup";
+ var origActive, eventNs = ".openingAnotherPageAfterPopup";
expect( 7 );
View
2  tests/unit/select/select_core.js
@@ -18,7 +18,7 @@
};
// Check if two chunks of DOM are identical
- domEqual = function( l, r ) {
+ var domEqual = function( l, r ) {
var idx, idxAttr, lattr, rattr;
// If the lengths of the two jQuery objects are different, the DOM
Please sign in to comment.
Something went wrong with that request. Please try again.