Sha256: d3aecade457c7e455dadbea4a611d754c305c2ad9bc92160ef4395f4f2048e09

Contents?: true

Size: 297 Bytes

Versions: 63

Compression:

Stored size: 297 Bytes

Contents

Spree.Views.Cart.LineItemTable = Backbone.View.extend({
  initialize: function() {
    this.listenTo(this.collection, 'add', this.add);
  },

  add: function(line_item) {
    var view = new Spree.Views.Cart.LineItemRow({model: line_item});
    view.render();
    this.$el.append(view.el);
  }
});

Version data entries

63 entries across 63 versions & 2 rubygems

Version Path
solidus_backend-2.2.0 app/assets/javascripts/spree/backend/views/cart/line_item_table.js
solidus_backend-2.2.0.rc1 app/assets/javascripts/spree/backend/views/cart/line_item_table.js
solidus_backend-2.2.0.beta1 app/assets/javascripts/spree/backend/views/cart/line_item_table.js