Bug fix for off() with no event listeners.
domLength -> length