harold-UIUX / jquery-ui-for-ipad-and-iphone

Automatically exported from code.google.com/p/jquery-ui-for-ipad-and-iphone
0 stars 0 forks source link

Global Scope Conflict #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is not technically a bug but an architectural recommendation:

Wrap your code in a self-executing function to get the variables and function 
declarations out of the global scope ( function($){ ... }(jQuery) ). There are 
many articles and resources on the web that can explain why this is a good 
coding practice. 

If this recommendation is adopted, make sure both instances of 
window.setTimeout("cancelTap()", 600); are changed to 
window.setTimeout(cancelTap, 600); 

Original issue reported on code.google.com by Eric.Mes...@gmail.com on 12 May 2015 at 2:10