Esempio n. 1
0
 public static JsNode Apply(this IMethod method, JsNode obj, object args)
 {
     return(method.IsStatic()
                                ? method.JsFullName().Id().Apply(obj, args)
                                : obj.Get(method.JsName()).Apply(obj, args));
 }
Esempio n. 2
0
 public static JsNode Apply(this JsNode f, object obj, object args)
 {
     return(f.Get("apply").Call(obj, args));
 }
Esempio n. 3
0
 public static JsNode Call <T>(this IMethod method, JsNode obj, params T[] args)
 {
     return(method.IsStatic()
                                    ? method.JsFullName().Id().Apply(obj, new JsArray(args.Cast <object>()))
                                    : obj.Get(method.JsName()).Call(obj, args));
 }