vigour-io / state

Change and state management
ISC License
3 stars 1 forks source link

$test #139

Closed jimdebeer closed 8 years ago

jimdebeer commented 8 years ago

being able to return a 'tree' clearer from the test method is very usefull, can also be a flag

necessary for creditcard modal

jimdebeer commented 8 years ago

can become cleaner then

 $test: {
          val (val, tree, key) {
            key = key.replace('$test', '$pass')
            if (tree[key]) { delete tree[key].$ }
            return true
          },
          $: '$root.user'
        },
jimdebeer commented 8 years ago

not nessecary just tsubscirotions