From 3ffe22ec0c1ef1042d0209243e820781827d293f Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 19 Aug 2014 13:51:50 +0200 Subject: [PATCH] Ox.isEmpty: add test for empty nodelists --- source/Ox/js/Type.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index e1c4b64f..5ddd19af 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -83,6 +83,8 @@ Ox.isEmpty Tests if a value is an empty array, object or string true > Ox.isEmpty('') true + > Ox.isEmpty(document.getElementsByTagName('')) + true > Ox.isEmpty(function() {}) false > Ox.isEmpty(false)