不要怂,就是干,撸起袖子干!

Commit 01fcc3b8 by Sascha Depold

Use proxy instead of manually capturing the event

1 parent e81e72e6
Showing with 1 additions and 3 deletions
...@@ -892,9 +892,7 @@ module.exports = (function() { ...@@ -892,9 +892,7 @@ module.exports = (function() {
this.emit(methodName, err) this.emit(methodName, err)
emitter.emit('error', err) emitter.emit('error', err)
}.bind(this)) }.bind(this))
.on('sql', function(sql) { .proxy(emitter, { events: ['sql'] })
emitter.emit('sql', sql)
})
}.bind(this) }.bind(this)
if (!!emitter) { if (!!emitter) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!