Added undefined to method parameters

Prevents pollution of the global undefined object.