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) initZ()

try initializing zlib or display a warning if it fails, extracted from main init to allow unit testing
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) showPaste()

shows the loaded paste
Source: