Closed GoogleCodeExporter closed 9 years ago
In fact, the current Object.apply was implemented as Python script, which pass
the arguments with JSON.
So, we need a native Object.apply later to support your scenes
def func_apply(self, thisArg, argArray=[]):
if isinstance(thisArg, JSObject):
return self.invoke(thisArg, argArray)
this = JSContext.current.eval("(%s)" % json.dumps(thisArg))
return self.invoke(this, argArray)
JSFunction.apply = func_apply
Original comment by flier...@gmail.com
on 24 Dec 2013 at 4:32
I have implement function.apply with native support, please verify the fix with
SVN trunk code after r565
Original comment by flier...@gmail.com
on 24 Dec 2013 at 5:36
Original issue reported on code.google.com by
csaft...@gmail.com
on 18 Dec 2013 at 6:20