/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
third_party/inputmask/patches/0001-window-element.patch
13 строк
657 B
Carlos Vializ
Upgrade RobinHerbots/inputmask to 4.0.4 (#19925)
18 дек 2018, 20:03
Не верифицирован
18 дек 2018, 20:03
74bb00c
Код
Авторство
О чём код?
diff --git a/third_party/inputmask/inputmask.dependencyLib.js b/third_party/inputmask/inputmask.dependencyLib.js index a6980ea95..ccc66a9ea 100755 --- a/third_party/inputmask/inputmask.dependencyLib.js +++ b/third_party/inputmask/inputmask.dependencyLib.js @@ -30,7 +30,7 @@ export function factory(window, document) { return ltype === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj; } function isValidElement(elem) { - return elem instanceof Element; + return elem instanceof window.Element; } function DependencyLib(elem) { if (elem instanceof DependencyLib) {