Skip to content

Instantly share code, notes, and snippets.

@rmoura-92
Created September 17, 2013 16:35
Show Gist options
  • Save rmoura-92/6596908 to your computer and use it in GitHub Desktop.
Save rmoura-92/6596908 to your computer and use it in GitHub Desktop.
ignite
// Filename: ignite.js
define(
[
'jquery',
'underscore',
'backbone',
'collections/voos',
'collections/hoteis',
'collections/ferias',
'collections/escapadinhas',
'collections/background',
'collections/lastminute',
'collections/users'
],
function($, _, Backbone, VoosColl, HoteisColl, FeriasColl, EscapadinhasColl, BgColl, LastminuteColl, UsersColl) {
var CollectionIgnite = {
Voos: new VoosColl(),
Hoteis: new HoteisColl(),
Ferias: new FeriasColl(),
Escapadinhas: new EscapadinhasColl(),
Background: new BgColl(),
LastMinute: new LastminuteColl(),
Users: new UsersColl(),
bootstrap: function() {
//return
this.Background.getImages();
this.LastMinute.getResults();
}
};
return CollectionIgnite;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment