Experience-Monks / f1

A stateful ui library
MIT License
78 stars 5 forks source link

Handle undefined properties in States #1

Closed mikkoh closed 9 years ago

mikkoh commented 9 years ago

If states are defined like this:

var states = {

  out: {

    item: {

      alpha: 0
    }
  },

  idle: {

    item: {}
  }
};

F1 will throw errors since it's expecting all states to have that value defined.