OpenTV Player Web HTML5

Module: dom-data

dom-data

dom-data.js

Methods

staticmodule:dom-data.getData(el){Object}

Returns the cache object where data for an element is stored

Name Type Description
el Element

Element to store data for.

Returns:
Type Description
Object The cache object for that el that was passed in.

staticmodule:dom-data.hasData(el){boolean}

Returns whether or not an element has cached data

Name Type Description
el Element

Check if this element has cached data.

Returns:
Type Description
boolean
  • True if the DOM element has cached data. - False otherwise.

staticmodule:dom-data.removeData(el)

Delete data for the element from the cache and the guid attr from getElementById

Name Type Description
el Element

Remove cached data for this element.