On Sun, Dec 08, 2019 at 10:15:54AM -0800, C K Kashyap wrote: > The unwanted side effect though is that the number of tags keeps doubling. > Looks like the Val function is called both when the "edit" button is > clicked and when "done" button is pressed. While I expected it to be called > when the "done" button was pressed but I am not sure why it is called when > "edit" is pressed.
Not at all. As I wrote in the previous mail, these functions are called at every micro-transaction. > > is EXTREME overkill! You basically rewrite all task objects several times > > during any primitive GUI operation like key presses and refreshes. Just 'trace' stuff to see how much happens here :) Especially if JavaScript is enabled in your browser, these functions run even when leaving a field. > Anyway, it is not clear to my why the code results in > duplicate tags - but yes, feeling very optimistic :) Not clear to me either now. Perhaps due to the non-unique keys (I mentioned in a prev. mail)? Though 'request' will not create new ones all the time, just not clear *which* one it returns. ☺/ A!ex -- UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
