Skip to content

Instantly share code, notes, and snippets.

@wmill
Created April 1, 2013 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmill/5283133 to your computer and use it in GitHub Desktop.
Save wmill/5283133 to your computer and use it in GitHub Desktop.
$.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