From 6d164340d99434b9c11099a2e74d7cf4a4a7e322 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 3 Dec 2018 16:19:21 +0100 Subject: fixed methods not returning this and missing methods on List --- src/utils/adopter.js | 2 +- src/utils/methods.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/adopter.js b/src/utils/adopter.js index 34b853e..f091c96 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -75,7 +75,7 @@ export function register (element, name = element.name, asRoot = false) { elements[name] = element if (asRoot) elements[root] = element - addMethodNames(Object.keys(element.prototype)) + addMethodNames(Object.getOwnPropertyNames(element.prototype)) return element } diff --git a/src/utils/methods.js b/src/utils/methods.js index bc05a70..e957213 100644 --- a/src/utils/methods.js +++ b/src/utils/methods.js @@ -16,7 +16,7 @@ export function registerMethods (name, m) { return } - addMethodNames(Object.keys(m)) + addMethodNames(Object.getOwnPropertyNames(m)) methods[name] = Object.assign(methods[name] || {}, m) } -- cgit v1.2.3