Return to Snippet

Revision: 28471
at July 8, 2010 17:30 by omerta83


Initial Code
/* 
Why namespace? Namespacing ensures that your 
variables don't conflict with any others which 
happen to have the same name. This is important 
if you want to avoid your code breaking when 
other files or plugins are included in your 
page's architecture. See below for an example of 
namespacing data. 
*/  
  
$("div").data("events.plugin",  
{  
   //your data here  
});

Initial URL

                                

Initial Description

                                

Initial Title
Scope namespaces to a specific name or plugin

Initial Tags
javascript, jquery

Initial Language
JavaScript