There is no .clear() function
kublermdk opened this issue · comments
It would be great to clear all the values of the dictionary. Right now I don't know all keys that are being set, but I need to be able to clear the dictionary's contents when people have finished adding a new project so they can add more without the previous settings causing effects.
Currently I'm doing something similar to the following to set them to null, which isn't the same as being unset :
var reactiveDict = new ReactiveDict( );
_.each( reactiveDict.keys, function ( Value, Key ) {
reactiveDict.set( Key, null );
} );