Created
October 7, 2014 05:49
-
-
Save itsananderson/525367907298c755b46b to your computer and use it in GitHub Desktop.
Backbone API designers. WTF is wrong with you?
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
var posts = new wp.api.collections.Posts(); | |
posts.fetch().done(function() { | |
var post = posts.first().attributes; | |
// ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment