fixing memory leak in dojo-based Todo