From 8205de6087bd6fe48706f598c49a111f52740c97 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Wed, 23 Mar 2016 22:50:30 +0100 Subject: Implementation new fx module --- src/helpers.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/helpers.js') diff --git a/src/helpers.js b/src/helpers.js index ee86dc7..4de813f 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -1,3 +1,7 @@ +function is(el, obj){ + return el instanceof obj +} + // tests if a given selector matches an element function matches(el, selector) { return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector); -- cgit v1.2.3