👽️ Aplica cambio de API para Context

This commit is contained in:
Manuel Cillero 2023-06-28 23:47:56 +02:00
parent a1d51d6d0f
commit 9552ae0af5
17 changed files with 96 additions and 100 deletions

View file

@ -33,12 +33,12 @@ impl ModuleTrait for JQuery {
}
impl JQuery {
pub fn add_in(rcx: &mut RenderContext) {
rcx.set_param::<bool>(JQUERY_PARAM, true);
pub fn add_in(cx: &mut Context) {
cx.set_param::<bool>(JQUERY_PARAM, true);
}
pub fn remove_from(rcx: &mut RenderContext) {
rcx.set_param::<bool>(JQUERY_PARAM, false);
pub fn remove_from(cx: &mut Context) {
cx.set_param::<bool>(JQUERY_PARAM, false);
}
}