Created
October 31, 2011 18:41
-
-
Save boxxxie/1328409 to your computer and use it in GitHub Desktop.
does this look correct?
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 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