Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding classes to pluginviewer.js #2642

Merged

Conversation

kushal-khare-official
Copy link
Contributor

part of issue #2629

}

function hideCurrentPage(viewer) {
const hideCurrentPage = (viewer) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a top level function. Should remain function FNAME(...) { ... }

@@ -222,7 +203,7 @@ function hideCurrentPage(viewer) {
viewer.refreshCanvas();
}

function showNextPage(viewer) {
const showNextPage = (viewer) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a top level function. Should remain function FNAME(...) { ... }

@@ -239,7 +220,7 @@ function showNextPage(viewer) {
viewer.refreshCanvas();
}

function viewerClicked(viewer, event) {
const viewerClicked = (viewer, event) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a top level function. Should remain function FNAME(...) { ... }

@@ -264,7 +245,7 @@ function viewerClicked(viewer, event) {
}
}

function loadThumbnailContainerHandler(viewer) {
const loadThumbnailContainerHandler = (viewer) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a top level function. Should remain function FNAME(...) { ... }

@@ -315,11 +296,11 @@ function loadThumbnailContainerHandler(viewer) {
});
}

function makeViewerBitmap(viewer, data, name, callback, extras) {
const makeViewerBitmap = (viewer, data, name, callback, extras) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a top level function. Should remain function FNAME(...) { ... }

Copy link
Member

@meganindya meganindya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@meganindya meganindya merged commit 7f0f144 into sugarlabs:master Dec 5, 2020
@kushal-khare-official kushal-khare-official deleted the editing-pluginviewer-js branch December 5, 2020 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants