registerNamespace

Registers a namespace by creating an object hierarchy. This makes it super easy to create uniquely identified objects.

jQueryWeb.Services = registerNamespace("jQueryWeb.Services");
jQueryWeb.Services.dataService = new serviceProxy("/service.svc")
jQueryWeb.Services.dataService.invoke("getCustomers",getCustomersCallback);

o.jQuery.registerNamespace(ns)

Parameters

<>ns<> The namespace to define as a string using . syntax to separate the namespace paths (ie "Westwind.Tools"). The 'namespace' is created by a hierarchy of empty objects that are accessible each step of the hierarchy.


See also:

Class jQuery

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic