Created
April 10, 2012 14:50
-
-
Save ayrton/2351922 to your computer and use it in GitHub Desktop.
TypeError
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twfbCounters = -> | |
$twitterFacebook = $('#twfb') | |
$.ajax { | |
url: 'http://api.twitter.com/1/users/show.json', | |
data: 'screen_name=zeptojs', | |
dataType: 'jsonp' | |
success: (data, status, xhr) -> | |
$twitterFacebook.html(data.followers_count) | |
error: (xhr, errorType, error) -> | |
$twitterFacebook.html('Unkown') | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twfbCounters = -> | |
$twitterFacebook = $('#twfb') | |
$.ajaxJSONP { | |
url: 'http://api.twitter.com/1/users/show.json?callback=?', | |
data: 'screen_name=zeptojs', | |
success: (data, status, xhr) -> | |
$twitterFacebook.html(data.followers_count) | |
error: (xhr, errorType, error) -> | |
$twitterFacebook.html('Unkown') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
madrobby/zepto#476