first compilation of the AsYouTypeFormatter #8
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.
Using pull requests once more for giving you a status report. Please bear with me and DO NOT merge :-)
The good news is that I am able to compile both the Google demo and the master of this project of yours.
This time my spike is about the AsYouTypeFormatter(**). I have modified your libphonenumber.js to include the preparation of a simple member function asYouTypeFormatter(countryCode).
The sample is built around html/loader.html - the task is to read the first input char-by-char and put in the second input the real-time formatted stuff.
It all works fine in compiling and creating the function, but the created AYTF objects are obfuscated. Since I need to use the inputDigit function in my sample, as it is done inside the official demo script, I see two alternative roads ahead:
The second path is more hazy in my thoughts, because the product of the asYouTypeFormatter function will have to interact with the DOM elements where the text gets typed by the user. This looks also messy to me, we'll see.
Every comment is welcome.
(**) I have done some good progress also about the preparation of the single-country deliverables, I will update the other PR probably tomorrow.