From 6055ac182b07050213de16b41a73073d5627ca6d Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 7 Oct 2015 12:18:18 +0200 Subject: [PATCH] Minor fix on pool merge. --- src/xo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xo.js b/src/xo.js index 529c18555..d0d2f79ac 100644 --- a/src/xo.js +++ b/src/xo.js @@ -905,9 +905,9 @@ export default class Xo extends EventEmitter { } catch (e) { const {objects} = sourceXapi - objects.add('add', this._onXenAdd) - objects.add('update', this._onXenAdd) - objects.add('remove', this._onXenRemove) + objects.on('add', this._onXenAdd) + objects.on('update', this._onXenAdd) + objects.on('remove', this._onXenRemove) this._onXenAdd(objects.all)