Closed rohankatyal29 closed 8 years ago
@rohankatyal29
contextMenuFeaturesImplementation.js
to contextMenu.js
ContextMenu
and add the functions its methods. This will lead to a much cleaner design.// in contextMenu.js (services folder)
export class ContextMenu {
addUrlToBlacklist(args) { ... }
getSynonyms(args) { ... }
}
// in eventPage.js
import { ContextMenu } from './services/contextMenu'
var contextMenu = new ContextMenu();
...
contextMenu.addUrlToBlacklist(arg);
Thanks!
Search for similar words on:
Blacklist websites Blacklist words