n1k0/casperjs — pull request #675 by hexid (2013-10-14 01:44:28+00:00)
Title: Fix error where this.emit('error', error); doesn't exist

Forgot about this fix that I made a while back.

This fixes the `TypeError: 'undefined' is not a function (evaluating 'this.emit('error', error)')` error found in the gist that I posted on https://github.com/n1k0/casperjs/pull/604#issuecomment-23520287