angular-hotkeys icon indicating copy to clipboard operation
angular-hotkeys copied to clipboard

memroy

Open ideamean opened this issue 7 years ago • 3 comments

when press the key that bind, the browser's memory is increase higher and higher, why?

ideamean avatar Mar 03 '17 07:03 ideamean

@ideamean It's most likely due to the code you've registered as the callback for the hotkey. Can you post it here?

aramando avatar Mar 03 '17 11:03 aramando

hotkeys.bindTo($scope).add({ combo: 'left', description: 'action_map_mode_submit', callback: function (event, hotkey) { // even if here is no code, memory will continue to rise // press the "left" key, memory will increase } })

ideamean avatar Mar 06 '17 01:03 ideamean

That's weird, I created a Plunk to test and I can't reproduce this. Even after 2000 hotkey presses there was absolutely no increase in the memory used.

Does it depend which browser you use? Can you create a Plunk or similar that demonstrates the issue?

aramando avatar Mar 06 '17 09:03 aramando