Lose focus and input enter trigger function

funname = function(){

}

$("-sharpelement").blur(function(){
    funname()
}

$("-sharpelement").click(function(){
    funname()
}

expression, loss of focus and input enter trigger function, can the above writing be further simplified?

Jun.16,2021

var funname;
$("-sharpelement").on('blur click',funname = function(){

})
Menu