vortexBrowser Class
Crossbrowser library
Constructor
vortexBrowser
()
Item Index
Methods
apply
(
-
obj
-
props
Apply properties to an object
Parameters:
-
obj
ObjectThe object witch the properties should be applied to
-
props
ObjectA JSON property structure
cancelEvent
(
Boolean
-
event
Cancel DOM event
Parameters:
-
event
DOMEventDOM 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
DOMElementDOM element
-
eventName
StringEvent name
-
callback
FunctionCallback function
unregisterEvent
(
-
element
-
eventName
-
callback
Unregisters a callback function from a DOM element event
Parameters:
-
element
DOMElementDOM element
-
eventName
StringEvent name
-
callback
FunctionCallback function