[Files app] ES6 class for ComboButton
|cr.define| used for this element doesn't support inheritance properly [1], so to make the inheritance work with |cr.define| parent element |cr.ui.MenuButton| added a static |decorate| method which is called by the rest of |cr| framework and in this method inject back the prototype in the same way it happens in the |cr.ui.define| [2]. [1] - https://cs.chromium.org/chromium/src/ui/webui/resources/js/cr.js?l=269-281 [2] - https://cs.chromium.org/chromium/src/ui/webui/resources/js/cr/ui.js?l=97-100 Test: Manually checked that the component is working in addition to normal integration tests Bug: 778674 Change-Id: I9531c517c6a31b01e23fb42c3d8aec70081b8712 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614725 Commit-Queue: François Degros <fdegros@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:François Degros <fdegros@chromium.org> Cr-Commit-Position: refs/heads/master@{#660634}
Showing
Please register or sign in to comment