1.0.4 • Published 10 years ago

method-proxy-js v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

method-proxy-js

NPM version Build Status

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.

Installing

Bower

bower install method-proxy-js

npm

npm install method-proxy-js

Example usage

MyFB = window.MyFB || [];

MyFB.push(['ui', ...]);

window.fbAsyncInit = function() {
  FB.init({
    ...
  });

  MyFB = new MethodProxy(FB, MyFB);
};

MyFB.push(['FBML.parse', ...]);

License

This project is released under the MIT license.

1.0.4

10 years ago

1.0.2

10 years ago

1.0.0

11 years ago