summaryrefslogtreecommitdiffstats
path: root/src/helpers.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-23 22:50:30 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-23 22:50:30 +0100
commit8205de6087bd6fe48706f598c49a111f52740c97 (patch)
tree965fd228f650007bd6ded8835885d89b2e19554b /src/helpers.js
parent2b26d66fc4686c249ef27b2b8ca1bb20df7bb95d (diff)
downloadsvg.js-8205de6087bd6fe48706f598c49a111f52740c97.tar.gz
svg.js-8205de6087bd6fe48706f598c49a111f52740c97.zip
Implementation new fx module
Diffstat (limited to 'src/helpers.js')
-rw-r--r--src/helpers.js4
1 files changed, 4 insertions, 0 deletions
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);