开发者

is it Ok to make a jQuery Extension that depends on other jQuery Extension?

I think this is just a "Best Practices" question开发者_运维问答, but I was wondering if it is ok to make a jQuery extension that does not depend solely on jQuery, but also on another jQuery extension.

Thanks for your answers! =D


yes, of course. you should of couse point the user to the dependencies :-)


Yes, many jquery plugins do this.

The main thing is that in the documentation you tell the user that they exist and that you follow the existing conventions regarding where you place the files.

This post may help as well:

Guidelines for using jQuery plugins and their dependencies


As long as you make it very clear to the user that this is a requirement, I don't see any major issue with this. The same is required with jQuery UI often.

Also, make getting your required extension as easy as possible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜