API Docs for: 0.1.0
Show:

vortexBrowser Class

Module: vortex

Crossbrowser library

Constructor

vortexBrowser

()

Methods

apply

(
  • obj
  • props
)

Apply properties to an object

Parameters:

  • obj Object

    The object witch the properties should be applied to

  • props Object

    A JSON property structure

cancelEvent

(
  • event
)
Boolean

Cancel DOM event

Parameters:

  • event DOMEvent

    DOM event

Returns:

Boolean: Returns false

getWebSocket

() Boolean

Returns the Browser specific WebSocket class

Returns:

Boolean:

isWebSocketSupported

() Boolean

Check WebSocket support

Returns:

Boolean: True if the Browser supports WebSockets

registerEvent

(
  • element
  • eventName
  • callback
)

Registers a callback function to a DOM element event

Parameters:

  • element DOMElement

    DOM element

  • eventName String

    Event name

  • callback Function

    Callback function

unregisterEvent

(
  • element
  • eventName
  • callback
)

Unregisters a callback function from a DOM element event

Parameters:

  • element DOMElement

    DOM element

  • eventName String

    Event name

  • callback Function

    Callback function