This may turn out to be a simple question with a very complex answer or with something very simple that I just missed completely, but in libraries like Prototype and jQuery etc., like a global variable, $an object that contains functions, for example:
$.ajax.get(…);
as well as the function itself, for example:
$("…");
Any help, even a pointer to a more explanatory website would be brilliant, I'm just intrigued!
For example, if I created a function ( $) containing a child object ( ajax), for example:
var $ = function() {
this.ajax = {};
return this;
};
I could access an object ajax, for example $().ajax, but don't like $.ajaxhow you get them?