23 lines
573 B
JavaScript
23 lines
573 B
JavaScript
|
|
module.exports = function(__runtime__, scope){
|
|
|
|
var __selector__ = __runtime__.selector();
|
|
var __obj__ = new java.lang.Object();
|
|
|
|
for(var method in __selector__){
|
|
if(!(method in __obj__) && !(method in scope)){
|
|
scope[method] = (function(method) {
|
|
return function(){
|
|
var s = selector();
|
|
return s[method].apply(s, Array.prototype.slice.call(arguments));
|
|
};
|
|
})(method);
|
|
}
|
|
}
|
|
|
|
return function(){
|
|
return __runtime__.selector();
|
|
};
|
|
}
|
|
|