1,105,331 Community Members

Jquery naming convention

Member Avatar
cartergarth
Light Poster
25 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

What is the naming convention for jquery?

http://net.tutsplus.com/articles/news/learn-how-to-create-a-jquery-plugin/ says

[B]funcName/jQuery.js[/B]

while...

http://www.ok-cool.com/posts/read/19-jquery-for-programmers-part-1/ says

[B]jQuery.funcName.js[/B]

Thanks.

Member Avatar
pritaeas
mod_pritaeas
11,285 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,831 [?]
Skill Endorsements: 154 [?]
Moderator
Featured
Sponsor
 
0
 

The latter makes a lot more sense to me. If you look at the jQuery manual you see that the plugin name should be: "jQuery.fn.myPlugin", so why not use it as your filename in the same order too.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: