From aaa24bf30996e70e4e71df609800fde7b23821d4 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 20 Sep 2014 12:27:04 +0200 Subject: [PATCH] add Ox.isNodeList --- source/Ox/js/Type.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index 0c09ad2e..03aded5e 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -252,6 +252,10 @@ Ox.isNaN = function(value) { return value !== value; }; +Ox.isNodeList = function(value) { + return Ox.typeOf(value) == 'nodelist'; +}; + /*@ Ox.isNodeList Tests if a value is a nodelist (value) -> True is the value is a nodelist