fix($animateCss): only (de)register listeners when events have been added
Previously, when an animation was closed because no animation styles where found, it would call .off() with an empty string as the argument. For both jquery/jqlite this is the same as calling .off() without any argument, which deregisters all event listeners on an element. Closes #13514
M
Martin Staffa committed
959f2bbb2d12c23a74902433c6247290d8f2fb89
Parent: 6a47c0d