Commit ef3540a0 ef3540a0d9e7f75cda63d3d7b5a0acbec523bbee by Nicolas Perriault

added an event

1 parent 3a3df80a
...@@ -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
......