Skip to content

Instantly share code, notes, and snippets.

@boxxxie
Created October 31, 2011 18:41
Show Gist options
  • Save boxxxie/1328409 to your computer and use it in GitHub Desktop.
Save boxxxie/1328409 to your computer and use it in GitHub Desktop.
does this look correct?
var countryList = Locations.extend(
{model:country,
initialize:function(){
var stores_db = db('stores_rt7');
var reigion_v = appView('country_prov_city_postal_code');
groupQuery(reigion_v,stores_db,1)
(function(data){
this.add(_(data.rows).chain()
.pluck('key')
.flatten()
.map(function(item){return {name:item};})
.value());
console.log("done setting up collection");
});
}});
var countries = new countryList;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment