mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
AAE-30878 Migrating from event-emitter to eventemitter3 which is … (#11116)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import ee from 'event-emitter';
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
import { AlfrescoApiClient, AlfrescoApiClientPromise } from '../alfrescoApiClient';
|
||||
import { AlfrescoApiConfig } from '../alfrescoApiConfig';
|
||||
import { Authentication } from './authentication';
|
||||
@@ -123,8 +123,7 @@ export class ProcessAuth extends AlfrescoApiClient {
|
||||
);
|
||||
});
|
||||
|
||||
ee(promise); // jshint ignore:line
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -154,8 +153,7 @@ export class ProcessAuth extends AlfrescoApiClient {
|
||||
);
|
||||
});
|
||||
|
||||
ee(promise);
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user