From 0a822c648427155c2649665f5f083ee299644ab9 Mon Sep 17 00:00:00 2001 From: xgoff Date: Thu, 2 Aug 2012 12:38:35 -0500 Subject: typeOf() should return false and not nil --- fakecanvas.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakecanvas.lua b/fakecanvas.lua index a58efc4..39482ce 100644 --- a/fakecanvas.lua +++ b/fakecanvas.lua @@ -86,7 +86,7 @@ function canvas:type () end function canvas:typeOf (type) - return _types[type] + return not not _types[type] end -- internal -- cgit v1.2.3-54-g00ecf