aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxgoff <antipotroast@gmail.com>2012-08-02 12:38:35 -0500
committerxgoff <antipotroast@gmail.com>2012-08-02 12:38:35 -0500
commit0a822c648427155c2649665f5f083ee299644ab9 (patch)
treeda8177e016e7bf8778cf4901efa49d3815ac24a9
parentd3aac1eb52dbf33240a1a8c929d95269c6a8f746 (diff)
downloadlove2d-fakecanvas-0a822c648427155c2649665f5f083ee299644ab9.tar.gz
love2d-fakecanvas-0a822c648427155c2649665f5f083ee299644ab9.tar.bz2
love2d-fakecanvas-0a822c648427155c2649665f5f083ee299644ab9.tar.xz
love2d-fakecanvas-0a822c648427155c2649665f5f083ee299644ab9.zip
typeOf() should return false and not nil
-rw-r--r--fakecanvas.lua2
1 files changed, 1 insertions, 1 deletions
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