I am trying to debug someone’s code, and came across this:
$$$.ajax({
url: ajax_url + param,
context: $("#formDialog"),
success: function(data) {
this.html(data);
BindPopupFormEvents(this, title, reload);
}
}, $$$.ajax.PARTAIL_UPDATE, $mainWrapper);
We are using the jquery library, but I’ve never seen a triple dollar sign before and I have no clue what it is… any suggestions?
EDIT
I found this later on:
$$$.fn = $$$.prototype = {
init: function(jQuery, test) {},
CONST: CONST
};
We are only using the jquery library, and we use a single dollar sign in most of the code.
can you explain in plain english what the triple dollar sign is accomplishing, please?
It’s just an alias to the
jQueryobject, just like$. That’s all…In can be done by hand or with
jQuery.noConflict()Examples:
Now both
$$$andblaare aliases to thejQueryobject.Edit to reflect your edit:
Though I see only small portion of the code but
$$$.fn = $$$.prototypeseems silly asjQuery.fnis an alias tojQuery.prototype…From the source code: