Skip to content

Commit

Permalink
Revert "use capture event handler"
Browse files Browse the repository at this point in the history
This reverts commit 65cc4dd.
  • Loading branch information
redmunds committed Dec 3, 2013
1 parent 65cc4dd commit e935f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/CSSInlineEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ define(function (require, exports, module) {
* PopUpManager when the dropdown is closed.
*/
function _cleanupDropdown() {
window.document.body.removeEventListener("click", _closeDropdown, true);
$("html").off("click", _closeDropdown);
$(hostEditor).off("scroll", _closeDropdown);
$(PanelManager).off("editorAreaResize", _closeDropdown);
dropdownEventHandler = null;
Expand Down Expand Up @@ -261,7 +261,7 @@ define(function (require, exports, module) {

$dropdown.focus();

window.document.body.addEventListener("click", _closeDropdown, true);
$("html").on("click", _closeDropdown);
$(hostEditor).on("scroll", _closeDropdown);
$(PanelManager).on("editorAreaResize", _closeDropdown);
}
Expand Down

0 comments on commit e935f0d

Please sign in to comment.