zerk.browser Class
Browser
Crossbrowser library.
Item Index
Methods
cancelEvent
(
Boolean
-
event
Cancel DOM event
Parameters:
-
event
DOMEventDOM event
Returns:
Boolean:
Returns false
getElementPosition
(
Object
-
element
Returns the position of given DOM element
Parameters:
-
element
DOMElementDOM element
Returns:
Object:
Offset
registerEvent
(
-
element
-
eventName
-
callback
Registers a callback function to a DOM element event
Parameters:
-
element
DOMElementDOM element
-
eventName
StringEvent name
-
callback
FunctionCallback function
setupRequestAnimationFrame
()
Crossbrowser requestAnimationFrame
http://paulirish.com/2011/requestanimationframe-for-smart-animating/
http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
requestAnimationFrame polyfill by Erik Möller
fixes from Paul Irish and Tino Zijdel
unregisterEvent
(
-
element
-
eventName
-
callback
Unregisters a callback function from a DOM element event
Parameters:
-
element
DOMElementDOM element
-
eventName
StringEvent name
-
callback
FunctionCallback function