Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created March 1, 2014 12:41
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 dagda1/9289214 to your computer and use it in GitHub Desktop.
Save dagda1/9289214 to your computer and use it in GitHub Desktop.
BulkLoader.prototype.load = function(callback){
var self = this;
$.getJSON('/login').done(function(data) {
$.getJSON('/users').done(function(data) {
self.users = data;
$.getJSON('/companies').done(function(data) {
self.companies = data;
$.getJSON('/contacts').done(function(data) {
self.contacts = data;
callback(self);
});
});
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment