Class: Controller

Controller(window, document)

new Controller(window, document)

(controller) main PrivateBin logic
Parameters:
Name Type Description
window object
document object
Source:

Methods

(static) clonePaste()

clone the current paste
Source:

(static) hideStatusMessages()

hides all status messages no matter which module showed them
Source:

(static) init()

application start
Source:

(static) newPaste()

creates a new paste
Source:

(static) refreshPaste(callback)

refreshes the loaded paste to show potential new data
Parameters:
Name Type Description
callback function
Source:

(static) removePaste(pasteId, deleteToken)

removes a saved paste
Parameters:
Name Type Description
pasteId string
deleteToken string
Deprecated:
  • not used anymore, de we still need it?
Source:

(static) showBadBotMessage()

shows how we much we love bots that execute JS ;)
Source:

(static) showPaste()

shows the loaded paste
Source: