This object has two goals:

  • hide all the global state in the browser caused by the window object
  • abstract away all the browser specific features and inconsistencies

Constructors

Properties

$$completeOutstandingRequest: any
$$incOutstandingRequestCount: any
baseElement: JQLite
cachedState: any
lastBrowserUrl: string
lastCachedState: any
lastHistoryState: any
notifyWhenNoOutstandingRequests: any
pendingDeferIds: {}
taskTracker: TaskTracker
urlChangeInit: boolean
urlChangeListeners: UrlChangeListener[]

Methods

  • Returns the base href of the document.

    Returns string

    The base href.

  • Cancels a deferred function.

    Parameters

    • deferId: number

      The ID of the deferred function to cancel.

    Returns boolean

    True if the function was successfully canceled, false otherwise.

  • Defers a function to be executed after a delay.

    Parameters

    • fn: (() => any)

      The function to defer.

        • (): any
        • Returns any

    • Optionaldelay: number = 0

      The delay in milliseconds before executing the function.

    • OptionaltaskType: string = ...

      The type of task to track.

    Returns number

    The timeout ID associated with the deferred function.