angular-hotkeys
angular-hotkeys copied to clipboard
memroy
when press the key that bind, the browser's memory is increase higher and higher, why?
@ideamean It's most likely due to the code you've registered as the callback for the hotkey. Can you post it here?
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 } })
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?