We haven't done it in core, but it would be a good habit to get into for
modules to prevent overwriting core or other modules.

Ben

On Mon, Apr 16, 2012 at 5:51 AM, Steven Githens <[email protected]> wrote:

> Hello OpenMRS Dev,
>
> Do we have a convention for namespacing any new javascript being written
> in OpenMRS? Most of the functions I've seen so far are in the global
> namespace.
>
> While working on a portlet for my reporting ticket last week I started
> using openmrs.reporting [1] for the time being.
>
> Cheers,
> Steve
>
>
> [1] Just using the idiom:
> var openmrs = openmrs || {};
> openmrs.reporting = openmrs.reporting || {};
>
> ______________________________**___________
>
> To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
> [email protected] with "SIGNOFF openmrs-devel-l" in the  body
> (not the subject) of your e-mail.
>
> [mailto:LISTSERV@LISTSERV.**IUPUI.EDU <[email protected]>
> ?body=SIGNOFF%**20openmrs-devel-l]
>

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to