Merge pull request #2137 from Asriwi/fix-popover-close-exception

Fixed: CPPopover not closing in some browsers
This commit is contained in:
Aparajita Fishman
2014-06-15 16:05:01 -04:00
+2 -1
View File
@@ -588,7 +588,8 @@ var _CPPopoverWindow_shouldClose_ = 1 << 4,
{
// Make absolutely sure no dangling event listeners are left
#if PLATFORM(DOM)
_DOMElement.removeEventListener(CPBrowserStyleProperty("transitionend"), _orderOutTransitionFunction, YES);
if (_animates && _browserAnimates)
_DOMElement.removeEventListener(CPBrowserStyleProperty("transitionend"), _orderOutTransitionFunction, YES);
#endif
[self _removeFrameObserver];