MetaDescriptionManager Factory

Defined in: ui/shared/core/MetaDescriptionManager.js

A module for adjusting the document's title for a while then restoring it.

Public Functions

Booleanupdate()
Booleanrestore()

Instance Constructor Documentation

MetaDescriptionManager(generate: Function) -> Object

Parameters (1)

generate
Function

A function that must yield the new title (if any) when the manager is asked to update.

Return Value

titleMgr
Object

Instance Method Documentation

    restore() -> BooleanASYNC

    Restore the document title to what it was before this instance started fuddling with the title.

    Return Value

    Boolean

    Whether there were any restorations to apply to the title.

    update() -> Boolean

    Call this any-time you suspect the title needs updating (that is, the generator might yield different results than the last update.)

    Return Value

    Boolean

    Whether the title was updated or not.