proxy
Proxy methods on host object until a promise has resolved.
var proxy = ; var api = { /* ... */ } { /* ... */ }; // proxy method1 and method2; // call your api now api ;
API
proxy(host, methods, getPromise)
host
Type: Object
The host object you want to proxy
methods
Type: Array
List of methods of the host object you want to proxy
methods
Type: Function
A function that return a promise to resolve before executing proxied method
License
MIT