Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Change namespace #17

Closed
mar10 opened this issue May 23, 2013 · 3 comments
Closed

Change namespace #17

mar10 opened this issue May 23, 2013 · 3 comments

Comments

@mar10
Copy link
Owner

mar10 commented May 23, 2013

e.g.
ryrych/rcarousel#16
or

When you define a widget with the $.widget("namespace.widgetname") syntax, the widget factory instantiates the widget "class" inside $[ namespace ]. All jQuery UI widgets exist in the $.ui namespace, which is reserved for official widgets, so make sure you change this to something unique. Namespaces are used internally for organizational purposes; they do not allow you to create multiple widgets with the same name.

@jdaltemus
Copy link
Contributor

I am not sure why you are considering using moogle for the namespace. I agree the namespace should not be ui, but maybe should include ui? Maybe mu or mui as it can stand for multiple things (mit-ui, martin-ui, my-ui). Another choice would be to go for a free ui approach like fu (can also be a pun on foo-bar-baz-qux). I don't know and it really does not matter. I just figured I would provide some ideas, if you needed them.

@mar10
Copy link
Owner Author

mar10 commented May 26, 2013

I think namespaces should avoid name conflicts, so they should be unique ('foo' and 'martin' are not).
So I thought of using a string that I 'own'. A reverse domain name (e.g. ''de.wwwendt') is a classical approach, but somewhat bureaucratic.
'moogle' and 'mar10' are nicknames that I use on Google Code and GitHub.

@jdaltemus
Copy link
Contributor

No problem. Just did not know where moogle came from and it sounds, probably intentionally, close to google. Anyhow, I don't really have a preference just thought keeping it broad would allow other jquery ui solutions to be added in the future; however, it is not that important.

@mar10 mar10 closed this as completed in 38d869b Jun 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants