These are chat archives for ericelliott/stampit

3rd
Feb 2015
Especially this block:
var Book = Class({
  with: [
    UniqueID,
    Storable
  ],
  constructor: function (title, author) {
    this.title = title;
    this.author = author;
  },
  save: function () {
    // save data
    this.saveStorableAs(this.title, {
      author: this.author,
      uid: this.uid
    });
    // and store it permanently
    localStorage.setItem('book', JSON.stringify(this));
  }
});

var js = new Book('blabla JS bla', 'Some Body');
js.save();
Vasyl Boroviak
@koresar
Feb 03 2015 05:20
It's a featureful module which Eric would not like because it allows inheritance. And it has rather bulky codebase. Although, someone might like it more than stampit.