This repository was archived by the owner on Jul 1, 2025. It is now read-only.
Open
Conversation
davelandry
suggested changes
Sep 10, 2023
Member
davelandry
left a comment
There was a problem hiding this comment.
Ahh, I see what you're doing here. We need to give access all of the config methods access to this if they are named functions.
Unfortunately, this new logic here will fail if playButtonConfig.text is set to a String (we can only bind with Functions).
That's why we have configPrep! It's a function exported by d3plus-common that, among other things, will bind this to all Function config methods. Check it out:
import {configPrep} from "d3plus-common";.config(configPrep.bind(this)(this._playButtonConfig))Take that for a test run, and let me know if that doesn't work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We found that the play/pause button icons were not working properly on Android devices. We tried to modify them, and we fixed it for Android, but stopped working on iPhone (replaced by emoji).
When trying to override it, we found that the
_timerPlayboolean was not externally accessible, so we modified theplayButtonConfigto bind the text function.Seba will try to fix the problem for the different OS, but for now he needs this change to override it in DataSaudi.