-
Enhancement
-
Resolution: Fixed
-
P5
-
9
-
None
-
b88
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142310 | emb-9 | Michael Haupt | P5 | Resolved | Fixed | team |
Scenario: provide some extensions to a Java object with a JSAdapter, but have all (other) method calls fall through to the original object to provide transparent adaption.
The following implementation of __call__ facilitates this. Add an example that illustrates it. Verify it works for multiple arguments.
__call__: function() {
var args = [x].concat(Array.prototype.slice.call(arguments, 1))
return Function.call.apply(x[arguments[0]], args)
}
The following implementation of __call__ facilitates this. Add an example that illustrates it. Verify it works for multiple arguments.
__call__: function() {
var args = [x].concat(Array.prototype.slice.call(arguments, 1))
return Function.call.apply(x[arguments[0]], args)
}
- backported by
-
JDK-8142310 add JSAdapter example with fallthrough
-
- Resolved
-