1
0
Fork 0

Nasal/globals.nas: Added a missing var-keyword.

This commit is contained in:
Anders Gidenstam 2012-06-12 22:35:37 +02:00
parent e3e0defac9
commit 3bcfe8296c

View file

@ -28,7 +28,7 @@ var __ = {};
#
var isa = func(obj, class) {
if(typeof(obj) == "hash" and obj["parents"] != nil)
foreach(c; obj.parents)
foreach(var c; obj.parents)
if(c == class or isa(c, class))
return 1;
return 0;