Swipe
Swipe copied to clipboard
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 !== 'undefine'); // true return me; }(swipe||{}) ); alert(swipe.test1); alert(swipe.test2);