Home Reference Source

References

Class Summary

Static Public Class Summary
public

The Wombat proper class

public

The Wombat class responsible for setting up the overrides

public

Wombat controlled Location object

public

The base Wombat Class, responsible for rewrites

Function Summary

Static Public Function Summary
public

WrappedListener(orig_listener: function, win: Window): Object

Wrap the original eventListener for type "message"

  • if the events data.to_host is not "*" and windows WB_wombat_location host is not equal to the events data.to_host skip
  • if the events data is from top sets the source to __WB_top_frame
  • if the events data.src_id and __WB_win_id object exists and the events data.src_id has a mapping in __WB_win_id set the source to that mapping
public

def_prop(obj: DomElement | MessageEvent | JSNative, prop: string, set_func: function, get_func: function, enumerable: boolean): boolean

Override a property on the given object by defining either its setter or getter or both

public

ends_with(str: string, suffix: string): string | undefined

Determines if the string ends with the given suffix

public

equals_any(string: string, arr: string[]): string | undefined

Determines if the string is equal to any string in an array

public

Retrieve the original getter for an property on an object

public

Retrieve the original setter for an property on an object

public

Determines if a given string is a host url

public
  • if window is null or undefined return false
  • if win.wbinfo is falsey return win._wb_wombat !== undefined else return !win.wbinfo.is_frame
  • if an Exception occurs returns false
public

starts_with(string: string, arr_or_prefix: string | string[]): string | undefined

Determines if a given string starts with single prefix or an array of prefixes

Variable Summary

Static Public Variable Summary
public
public
public
public
public
public
public

Typedef Summary

Static Public Typedef Summary
public

DomElement: Element | HTMLElement | HTMLBaseElement

public

JSNative: Object | prototype | function

External Summary

Static Public External Summary
public
public