Serves as a proxy between your code and an object. Useful for working with asynchronously loaded objects, such as Facebook's API.
Read Working With Asynchronously Loaded JavaScript Objects for more in-depth look at its uses.
bower install method-proxy-js
npm install method-proxy-js
MyFB = window.MyFB || [];
MyFB.push(['ui', ...]);
window.fbAsyncInit = function() {
FB.init({
...
});
MyFB = new MethodProxy(FB, MyFB);
};
MyFB.push(['FBML.parse', ...]);
This project is released under the MIT license.