Skip to content

Proxy between your code and an object. Useful for working with asynchronously loaded objects, such as Facebook's API.

License

Notifications You must be signed in to change notification settings

civiccc/method-proxy-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dc014d2 · Apr 28, 2014

History

24 Commits
Apr 8, 2014
Jun 13, 2013
Apr 8, 2014
Mar 31, 2014
Apr 8, 2014
Apr 8, 2014
May 28, 2013
Apr 28, 2014
Apr 8, 2014
Apr 8, 2014
Apr 8, 2014

Repository files navigation

method-proxy-js

NPM version Bower 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.

About

Proxy between your code and an object. Useful for working with asynchronously loaded objects, such as Facebook's API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published