src/navigation.js
function pop(doc) {
    if (doc instanceof Document) {
        _.defer(() => navigationDocument.popToDocument(doc));
    } else {
        _.defer(() => navigationDocument.popDocument());
    }
}
function pop(doc) {
    if (doc instanceof Document) {
        _.defer(() => navigationDocument.popToDocument(doc));
    } else {
        _.defer(() => navigationDocument.popDocument());
    }
}
function pop ( doc ) { if ( doc instanceof Document ) { _ . defer ( ( ) => navigationDocument . popToDocument ( doc ) ) ; } else { _ . defer ( ( ) => navigationDocument . popDocument ( ) ) ; } }
Pops the recent document or pops all document before the provided document.

@inner
@alias module:navigation.pop

@param  {Document} [doc]     The document until which we need to pop.
Pops the recent document or pops all document before the provided document .