JSFiddle - React, Tailwind, and code Playground

by Eric Hynds

HTML

<a id="foo">foo</a>

JavaScript

(function( _refresh ){
    $.ui.buttonset.prototype.refresh = function(){
        console.log("refresh called");
        _refresh.apply( this, arguments );
    };
})( $.ui.buttonset.prototype.refresh );

$("#foo").buttonset();