Sha256: a6fe0d0ab056693ebed33093e1c673d3aa98f1d330d5530b6613555bb8b7edf0
Contents?: true
Size: 404 Bytes
Versions: 91
Compression:
Stored size: 404 Bytes
Contents
Spree.Views.Cart.LineItemTable = Backbone.View.extend({ initialize: function() { this.listenTo(this.collection, 'add', this.add); this.listenTo(this.collection, 'reset', this.reset); }, add: function(line_item) { var view = new Spree.Views.Cart.LineItemRow({model: line_item}); view.render(); this.$el.append(view.el); }, reset: function() { this.$el.empty(); } });
Version data entries
91 entries across 91 versions & 1 rubygems