Files app: Remove incorrect .bind(this) and fix cr.ui.Command
Remove incorrect .bind(this) because rollup fails because `this` is null in that context. These callbacks don't use `this` so it's safe to remove the binding. Import webui_command_extender.m.js to add the method setHidden() in cr.ui.Command when running as JS modules. Bug: 1133186 Change-Id: Iac70f1364a2bf77bfbdf6eb4d3d453786519c2e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2636006 Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:Jeremie Boulic <jboulic@chromium.org> Cr-Commit-Position: refs/heads/master@{#844634}
Showing
Please register or sign in to comment