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

Commit 9e9d28a2 by Sascha Depold

renamed keys to events

1 parent f16f3922
Showing with 4 additions and 4 deletions
......@@ -66,13 +66,13 @@ module.exports = (function() {
*/
CustomEventEmitter.prototype.proxy = function(emitter, options) {
options = Utils._.extend({
keys: proxyEventKeys,
skipKeys: []
events: proxyEventKeys,
skipEvents: []
}, options || {})
options.keys = Utils._.difference(options.keys, options.skipKeys)
options.events = Utils._.difference(options.events, options.skipEvents)
options.keys.forEach(function (eventKey) {
options.events.forEach(function (eventKey) {
this.on(eventKey, function (result) {
emitter.emit(eventKey, result)
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!