ForeverDev

Untitled

Oct 13th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.33 KB | None | 0 0
  1. var handleApi = function(key, callback) {
  2.     $.get('http://www.roblox.com/mobileapi/userinfo', function(data) {
  3.         $.each(objects, function(index, value) {
  4.             if (index == key) {
  5.                 callback(value)
  6.             }
  7.         })
  8.     })
  9. }
  10.  
  11. handleApi("RobuxBalance", function(value) {
  12.     console.log(value) //Nothing is logged, not even 'undefined'
  13. })
Advertisement
Add Comment
Please, Sign In to add comment