I will assume you correctly translated this from CoffeeScript. :)