Qayta qo'ng'iroq qilish uchun jQuery - pass işleyicisi

Menda shunday narsa bor:

run : function(o, path, duration){
    o.handler.animate({path : new $.path.bezier(path)},
        {
            /*step: function(now, fx) {},*/
            duration : duration,
            easing: 'linear',
            complete : function() {

            }
        }
    );

    return true;
}

Men o kodini to'liq qayta qo'ng'iroq qilishda ishlatishni istayman. Biror yo'l-yo'riq kerak :)

Important Note : without using "global vars". o is a reference to players[11].handler wich references $('.player[data-id="11"]')

0

1 javoblar

Yopish ichida ushlangani uchun siz uni ishlatishingiz mumkin:

complete : function() {
    o...
}
3
qo'shib qo'ydi
Javascript UZB
Javascript UZB
99 ishtirokchilar

@js_uzb @vuejs_uz @react_uz @nodejs_uz @angular_uz @ngTashkent @yiiframework_uz @laravel_uz @linux_uzbek @python_uz @swift_uzb —————— @uzdevgroup @UzGeeksGroup ——— @UzDev_Jobs @jobs_uzb