Skip to content
Advertisement

How to obtain parameters from decorated imported function?

i’d like to obtain the parameter from the decorated function. It’s a lil bit different from the usual one.

Here is the code

JavaScript

output: i need fetch: context, 1,2,3(parameters in test_function) in remotable_timer

JavaScript

i know the code below can be a potential way to achieve it, but i have to decorate remotable_cache in line anyway. Dose anyone have any idea, i’ll be appreciate it !

JavaScript

Advertisement

Answer

You should change

JavaScript

to

JavaScript

Here is the result

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement