diff options
Diffstat (limited to 'lib/dom_utils.coffee')
| -rw-r--r-- | lib/dom_utils.coffee | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index 95b9f4b3..67d5a44c 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -363,8 +363,12 @@ DomUtils =              @remove() if event.target == window              handlerStack.continueBubbling        callback?() -      @suppressEvent event -      handlerStack.suppressEvent +      if suppressPropagation +        DomUtils.suppressPropagation event +        handlerStack.suppressPropagation +      else +        DomUtils.suppressEvent event +        handlerStack.suppressEvent    # Polyfill for selection.type (which is not available in Firefox).    getSelectionType: (selection = document.getSelection()) -> | 
