PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/app/collections/cart.js

https://github.com/corsairdnb/vuaro
JavaScript | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | 2bbfa6ce3ff2379c17e3c6419abdbaab MD5 | raw file
Possible License(s): BSD-3-Clause
  1. define([
  2. 'backbone',
  3. 'backboneLocalstorage'
  4. ], function(Backbone, localstorage){
  5. var Collection = Backbone.Collection.extend({
  6. localStorage: new localstorage("cart"),
  7. change: function() {
  8. alert("collection changed!")
  9. }
  10. });
  11. return new Collection();
  12. });