What is the triple dollar sign in jquery?

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 use the jquery library, but I've never seen a triple dollar sign before, and I don't know what that is ... any suggestions?

EDIT

I found this later:

$$$.fn = $$$.prototype = {
    init: function(jQuery, test) {},
    CONST: CONST
};​

We use only the jquery library, and in most cases we use the dollar sign.

Can you explain in English what the triple dollar sign does, please?

+5
source share
2 answers

This is just an alias of the object jQuery, like $. It's all...

In can be done manually or using jQuery.noConflict()

Examples:

var $$$ = jQuery.noConflict();
var bla = jQuery.noConflict();

Now both $$$and blaare aliases for the object jQuery.

JavaScript $ , jQuery. jQuery, $ jQuery, $. JavaScript jQuery, $ $.noConflict():


, :

, $$$.fn = $$$.prototype , jQuery.fn jQuery.prototype...

:

jQuery.fn = jQuery.prototype
+7

$$$ [] JavaScript.

$$$ jQuery, - - :

$$$ = jQuery.noConflict();

, $ . , , $ jQuery :

;(function myStuff ($, evil$) {
   // do stuff with $ (jQuery) and "the other $"
})(jQuery, $) // <-- keep us real
+3

All Articles