From f42b5d0d5fd31e17e8f12cfa7b3c4040f1888e5d Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Sun, 22 Oct 2017 06:37:15 +0300 Subject: [PATCH] 1.0.12 --- composer.json | 2 +- lib/main.php | 4 ++++ view/base/web/main.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 136422b..f7b3a75 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/phone" - ,"version": "1.0.11" + ,"version": "1.0.12" ,"description": "A telephone numbers handling library for my Magento 2 extensions." ,"type": "magento2-module" ,"homepage": "https://github.com/mage2pro/phone" diff --git a/lib/main.php b/lib/main.php index bcec352..17fee14 100644 --- a/lib/main.php +++ b/lib/main.php @@ -66,6 +66,10 @@ function df_phone_format($n, $throw = true, $f) {return df_phone_p()->format(df_ /** * 2017-04-22 «+79629197300» + * 2017-10-22 + * @see df.s.normalizePhone(): + * https://github.com/mage2pro/core/blob/3.2.15/Core/view/base/web/my/string.js#L64-L72 + * @used-by \Dfe\Stripe\Block\Multishipping::pPhone() * @param string[]|OA|QA|CA $n * @param bool $throw [optional] * @return string diff --git a/view/base/web/main.js b/view/base/web/main.js index 5a23a06..28fc7dc 100644 --- a/view/base/web/main.js +++ b/view/base/web/main.js @@ -21,7 +21,7 @@ function(c) {ko.bindingHandlers['df-phone'] = {init: function(e, accessor) {var // otherwise the initial value will be displayed without its country flag. e.value = config.value; // 2017-09-06 https://github.com/jackocnr/intl-tel-input/blob/v12.0.2/README.md - $e.intlTelInput(_.extend({ + $e.intlTelInput(_.assign({ // 2017-09-06 // «Whether or not to allow the dropdown. // If disabled, there is no dropdown arrow, and the selected flag is not clickable.