Jean-Baptiste

Well-known member
Hello,

I would like to extend the member tooltip JS XF.MemberTooltip, but I can't get it working.

Here is my code :

Code:
!function($, window, document, _undefined)
{
    "use strict";

    XF.MemberTooltipGM = XF.extend(XF.MemberTooltip, {
        __backup: {
            'init': '_init'
        },

        init: function()
        {
            this._init();
            console.log('Salut');
        }
    });


    XF.Element.register('gm-member-tooltip', 'XF.MemberTooltipGM');
}
(jQuery, window, document);

I don't get why it's never going to my init() function...

Of course, I have some HTML elements with the data-xf-init="gm-member-tooltip" attribute.

Any ideas ?

Regards,
Jean-Baptiste
 
Back
Top Bottom