LivelyKernel / lively.morphic

An implementation of the Morphic user interface framework for lively.next.
13 stars 2 forks source link

Old code using inline methods #121

Open rksm opened 7 years ago

rksm commented 7 years ago

Inline methods in code like

  createLabels(keys, values, tooltips = {}) {
    return arr.zip(keys, values).map(([name, value]) => {
      return {
        type: "label",
        value: name,
        onMouseDown: () => { this.update(name, value); }
      };
    });
  }

are not supported and will break serialization and synchronization. For instance specific behavior please consider using connect from a parent object that has a class or use object behavior defined via the object editor.

Code that still relies on that (style halos etc.) will be removed.