mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix eslint warnigs for core project (#7506)
This commit is contained in:
@@ -139,6 +139,7 @@ export class RenderingQueueServices {
|
||||
* Render a page or thumbnail view. This calls the appropriate function
|
||||
* based on the views state. If the view is already rendered it will return
|
||||
* false.
|
||||
*
|
||||
* @param view
|
||||
*/
|
||||
renderView(view: any) {
|
||||
@@ -155,7 +156,7 @@ export class RenderingQueueServices {
|
||||
break;
|
||||
case this.renderingStates.INITIAL:
|
||||
this.highestPriorityPage = view.renderingId;
|
||||
const continueRendering = function () {
|
||||
const continueRendering = function() {
|
||||
this.renderHighestPriority();
|
||||
}.bind(this);
|
||||
view.draw().then(continueRendering, continueRendering);
|
||||
|
@@ -285,9 +285,7 @@ export class ViewUtilService {
|
||||
clearInterval(intervalId);
|
||||
return resolve(rendition);
|
||||
}
|
||||
}, () => {
|
||||
return reject();
|
||||
});
|
||||
}, () => reject());
|
||||
} else {
|
||||
this.renditionsApi.getRendition(nodeId, renditionId).then((rendition: RenditionEntry) => {
|
||||
const status: string = rendition.entry.status.toString();
|
||||
@@ -297,9 +295,7 @@ export class ViewUtilService {
|
||||
clearInterval(intervalId);
|
||||
return resolve(rendition);
|
||||
}
|
||||
}, () => {
|
||||
return reject();
|
||||
});
|
||||
}, () => reject());
|
||||
}
|
||||
} else {
|
||||
clearInterval(intervalId);
|
||||
|
Reference in New Issue
Block a user