Fix event handler in HTML5 version to match basic version to eliminate Closure Compiler error
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/52d42925 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/52d42925 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/52d42925 Branch: refs/heads/develop Commit: 52d42925f91148c83b9785ff23833d4f42cad12d Parents: 102b167 Author: Alex Harui <aha...@apache.org> Authored: Wed Nov 20 23:11:09 2013 -0800 Committer: Alex Harui <aha...@apache.org> Committed: Wed Nov 20 23:11:09 2013 -0800 ---------------------------------------------------------------------- .../src/org/apache/flex/html5/staticControls/ComboBox.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/52d42925/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js index 7931321..318005c 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js @@ -59,10 +59,10 @@ org.apache.flex.html5.staticControls.ComboBox.prototype.createElement = this.positioner = this.element; - // add a click handler to p's parentElement so that a click - // outside of the combo box can dismiss the pop-up should it - // be visible - p.parentElement.onclick = goog.bind(this.dismissPopup, this); + // add a click handler so that a click outside of the combo box can + // dismiss the pop-up should it be visible. + goog.events.listen(document, 'click', + goog.bind(this.dismissPopup, this)); };