Options Class
A simple mixin for providing and options argument. If the object has a defaultOptions instance it will set them.
mixing also provides the setOptions method. other than settting the options, any key with the on* signiture (onLoad, onComplete etc) will be added as an event
Item Index
Methods
- calculateOffsets static
- calculateOffsets static
- setOptions
- setOptions
Methods
calculateOffsets
(
Object
static
-
element
-
[container]
calculates the offsets of an element relevant to one of it's parent
Parameters:
-
element
Element -
[container]
Element optionaldefault to
document.body
Returns:
Object:
{left, top}