Home Reference Source
public class | source

WombatLocation

Wombat controlled Location object

Member Summary

Public Members
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
Private Members
private
private
private
private
private
private
private
private
private
private
private
private
private

_wombatRef: WBWombat

Method Summary

Public Methods
public

assign(url: string): *

public

Retrieve a property on the original Location object

public

orig_setter(prop: string, value: *)

Set a property on the original Location object

public

reload(): *

public

replace(url: string): *

public

The toString method of the Location object

Private Methods
private

define getters and setters for the locations properties

private

_rewrite_set_on_original(prop: string, value: *)

set prop to value on the original location object

private

_set_loc(orig_href: string)

setup WombatLocation to appear to be just like the original Location

Public Members

public get hash: string source

public set hash: string source

public get host: string source

public set host: string source

public get hostname: string source

public set hostname: string source

public get href: string source

public set href: string source

public get origin: string source

public set origin: string source

public get pathname: string source

public set pathname: string source

public get port: string source

public set port: string source

public get protocol: string source

public set protocol: string source

Private Members

private _orig_loc: Location source

private _parser: Element source

private _wombatRef: WBWombat source

Public Methods

public assign(url: string): * source

Params:

NameTypeAttributeDescription
url string

Return:

*

See:

public orig_getter(prop: string): function | string source

Retrieve a property on the original Location object

Params:

NameTypeAttributeDescription
prop string

Return:

function | string

public orig_setter(prop: string, value: *) source

Set a property on the original Location object

Params:

NameTypeAttributeDescription
prop string

the property to set

value *

the value of the property to set

public replace(url: string): * source

Params:

NameTypeAttributeDescription
url string

Return:

*

See:

public toString(): string source

The toString method of the Location object

Return:

string

Example:

String(WombatLocation) === String(Location) // true

Private Methods

private _overrides() source

define getters and setters for the locations properties

private _rewrite_set_on_original(prop: string, value: *) source

set prop to value on the original location object

Params:

NameTypeAttributeDescription
prop string

the prop to set

value *

the value the prop is being set to

private _set_loc(orig_href: string) source

setup WombatLocation to appear to be just like the original Location

Params:

NameTypeAttributeDescription
orig_href string

the original href