index.js
function objectify( id, props ) {

      // Stores references to elements that will be monitored.
  var objectifier = {},
      // Stores final values that are sent to user.
      objectified = {},
      container = document.querySelector( id );

  for ( var i = 0, len = props.length; i < len; i++ ) {
    if ( props[i].hasOwnProperty('source') ) {
      objectifier[ props[i].name ] = _tokenize( props[i] );
    } else {
      objectifier[ props[i].name ] = undefined;
    }
  }

  function _update() {
    update( container, objectifier, objectified );
  }

  setListeners( container, _update );

  objectified.update = _update;

  return objectified;
}
function objectify( id, props ) {

      // Stores references to elements that will be monitored.
  var objectifier = {},
      // Stores final values that are sent to user.
      objectified = {},
      container = document.querySelector( id );

  for ( var i = 0, len = props.length; i < len; i++ ) {
    if ( props[i].hasOwnProperty('source') ) {
      objectifier[ props[i].name ] = _tokenize( props[i] );
    } else {
      objectifier[ props[i].name ] = undefined;
    }
  }

  function _update() {
    update( container, objectifier, objectified );
  }

  setListeners( container, _update );

  objectified.update = _update;

  return objectified;
}
function objectify ( id , props ) { // Stores references to elements that will be monitored. var objectifier = { } , // Stores final values that are sent to user. objectified = { } , container = document . querySelector ( id ) ; for ( var i = 0 , len = props . length ; i < len ; i ++ ) { if ( props [ i ] . hasOwnProperty ( 'source' ) ) { objectifier [ props [ i ] . name ] = _tokenize ( props [ i ] ) ; } else { objectifier [ props [ i ] . name ] = undefined ; } } function _update ( ) { update ( container , objectifier , objectified ) ; } setListeners ( container , _update ) ; objectified . update = _update ; return objectified ; }
Constructor that processes the provided sources.
@param  {array} props Array of objects
@return {object} Returns a reference to the object that is periodically updated.
Constructor that processes the provided sources .