From 8479037ab6f0a491e68f8111e6df771d94656a71 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 19 May 2012 12:48:01 +0400 Subject: [PATCH] fix Ox.checkType --- source/Ox/js/Type.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index 4b93f881..bd895ab7 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -4,10 +4,10 @@ Ox.checkType Throws a TypeError if a value is not of a given type (val, type) -> undefined val <*> Any value - type Type + type Type, or array of types @*/ Ox.checkType = function(val, type) { - if (!Ox.in(Ox.toArray(type), Ox.typeOf(val))) { + if (!Ox.in(Ox.makeArray(type), Ox.typeOf(val))) { throw new TypeError(); } };