summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/nav/AddressView.js
blob: 4ccc263c509252775077caa0fe5c7245e27ecd28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var AddressView = View.extend({
  
  template: $("#address_template").html(),
  
  events: {
  },
  
  initialize: function(opt){
    this.parent = opt.parent
    this.parent.$(".address").html(this.template)
  },
  
  populate: function(data){
    this.parent.$(".address input").val("")
    Object.keys(data).forEach(function(key){
      this.parent$(".address [name=" + key + "]").val(data[key])
    }.bind(this))
  },
  
  deserialize: function(){
  },
  
  serialize: function(){
  },

})