An open API service indexing awesome lists of open source software.

https://github.com/dflydev/jquery-ddnamespace

jQuery Namespace Add-on
https://github.com/dflydev/jquery-ddnamespace

Last synced: about 1 month ago
JSON representation

jQuery Namespace Add-on

Awesome Lists containing this project

README

          

Dragonfly Development jQuery Namespace Add-on
http://github.com/dflydev/jquery-ddNamespace

This add-on gives jQuery users the ability to manipulate global namespaces.
In the most simple case, it can be used to create a namespace like this:

$.namespace('dflydev.example.util');
dflydev.example.util.demo = function() { ... }

Very much inspired by the following sources:
http://stackoverflow.com/questions/527089/is-it-possible-to-create-a-namespace-in-jquery
http://www.zachleat.com/web/2007/08/28/namespacing-outside-of-the-yahoo-namespace/