API Docs for:
Show:

Options Class

Defined in: src/utils.js:43
Module: Bromine.utils

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

(
  • element
  • [container]
)
Object static

Defined in bin/bromine.js:525

calculates the offsets of an element relevant to one of it's parent

Parameters:

  • element Element
  • [container] Element optional

    default to document.body

Returns:

Object: {left, top}

calculateOffsets

(
  • element
  • [container]
)
Object static

Defined in src/utils.js:80

calculates the offsets of an element relevant to one of it's parent

Parameters:

  • element Element
  • [container] Element optional

    default to document.body

Returns:

Object: {left, top}

setOptions

(
  • options
)
chainable

Defined in bin/bromine.js:506

Parameters:

setOptions

(
  • options
)
chainable

Defined in src/utils.js:61

Parameters: