Created
April 1, 2013 03:38
-
-
Save wmill/5283133 to your computer and use it in GitHub Desktop.
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
$.getJSON("http://www.reddit.com/r/" + subreddit + "/.json?jsonp=?").then(function(response) { | |
var links = []; | |
response.data.children.forEach(function (child) { | |
links.push(App.RedditLink.create(child.data)); | |
}); | |
return links; | |
}).then(function(data){ | |
console.log(data)} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment