wiresjs / async-watch

AsyncWatch - watching js objects asynchronously
GNU General Public License v3.0
17 stars 3 forks source link

change callback params order #4

Open devmondo opened 8 years ago

devmondo commented 8 years ago

hi,

i think that oldVal should come before newVal, so instead of

AsyncWatch(obj, 'a.b.c', function(newVal,oldVal){
    console.log('set', value);
});

it should be

AsyncWatch(obj, 'a.b.c', function(oldVal,newVal){
    console.log('set', value);
});