a problem : undefined

var swipe=(function(me){
   var test = 1;
   var undefined = 1;
// compare following situations:
   me.test1 = (test !== undefined);  //false
   me.test2 = (typeof test !== 'undefined');   // true
   return me;
   }(swipe||{})
);
alert(swipe.test1);
alert(swipe.test2);