added an event
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -152,6 +152,9 @@ var Casper = function Casper(options) { | ... | @@ -152,6 +152,9 @@ var Casper = function Casper(options) { |
152 | this.on('deprecated', function onDeprecated(message) { | 152 | this.on('deprecated', function onDeprecated(message) { |
153 | this.echo('[deprecated] ' + message, 'COMMENT'); | 153 | this.echo('[deprecated] ' + message, 'COMMENT'); |
154 | }); | 154 | }); |
155 | |||
156 | // dispatching an event when configuration is achieved | ||
157 | this.emit('init'); | ||
155 | }; | 158 | }; |
156 | 159 | ||
157 | // Casper class is an EventEmitter | 160 | // Casper class is an EventEmitter | ... | ... |
-
Please register or sign in to post a comment