Permalink
Browse files

var name and whitespace

  • Loading branch information...
1 parent ee871ce commit 27bfe9a1de5d83d0b04172211dd0ab6187844af0 @johnbender johnbender committed Mar 1, 2012
Showing with 6 additions and 7 deletions.
  1. +5 −6 tests/jquery.testHelper.js
  2. +1 −1 tests/unit/init/init_core.js
View
11 tests/jquery.testHelper.js
@@ -165,9 +165,8 @@
},
eventCascade: function( sequence, timedOut ) {
- var args = sequence,
- fn = args.shift(),
- event = args.shift(),
+ var fn = sequence.shift(),
+ event = sequence.shift(),
self = this;
if( fn === undefined ) {
@@ -178,16 +177,16 @@
// if a pagechange or defined event is never triggered
// continue in the sequence to alert possible failures
var warnTimer = setTimeout(function() {
- self.eventCascade( args, true );
+ self.eventCascade( sequence, true );
}, 2000);
// bind the recursive call to the event
$.mobile.pageContainer.one(event, function() {
clearTimeout( warnTimer );
// Let the current stack unwind before we fire off the next item in the sequence.
- // TODO setTimeout(self.pageSequence, 0, args);
- setTimeout(function(){ self.eventCascade(args); }, 0);
+ // TODO setTimeout(self.pageSequence, 0, sequence);
+ setTimeout(function(){ self.eventCascade(sequence); }, 0);
});
}
View
2 tests/unit/init/init_core.js
@@ -6,7 +6,7 @@
libName = 'jquery.mobile.init.js',
coreLib = 'jquery.mobile.core.js',
extendFn = $.extend,
- originalLoadingMessage = $.mobile.loadingMessage;
+ originalLoadingMessage = $.mobile.loadingMessage,
setGradeA = function(value) { $.mobile.gradeA = function(){ return value; }; },
reloadCoreNSandInit = function(){
$.testHelper.reloadLib(coreLib);

0 comments on commit 27bfe9a

Please sign in to comment.