function fakeDataBind(el1, el2, property) {
    const forwardChange = function(el, event) {
      if (event.detail.hasOwnProperty('path'))
        el.notifyPath(event.detail.path, event.detail.value);
      else
        el.set(property, event.detail.value);
    };
    // Add the listeners symmetrically. Polymer will prevent recursion.
    el1.addEventListener(property + '-changed', forwardChange.bind(null, el2));
    el2.addEventListener(property + '-changed', forwardChange.bind(null, el1));
  }
/**
   * Data-binds two Polymer properties using the property-changed events and
   * set/notifyPath API. Useful for testing components which would normally be
   * used together.
   * @param {!HTMLElement} el1
   * @param {!HTMLElement} el2
   * @param {string} property
   */
Data-binds two Polymer properties using the property-changed events and
set/notifyPath API. Useful for testing components which would normally be
used together.
Data - binds two Polymer properties using the property - changed events and set / notifyPath API . Useful for testing components which would normally be used together .
function fakeDataBind(el1, el2, property) {
    const forwardChange = function(el, event) {
      if (event.detail.hasOwnProperty('path'))
        el.notifyPath(event.detail.path, event.detail.value);
      else
        el.set(property, event.detail.value);
    };
    el1.addEventListener(property + '-changed', forwardChange.bind(null, el2));
    el2.addEventListener(property + '-changed', forwardChange.bind(null, el1));
  }
function fakeDataBind ( el1 , el2 , property ) { const forwardChange = function ( el , event ) { if ( event . detail . hasOwnProperty ( 'path' ) ) el . notifyPath ( event . detail . path , event . detail . value ) ; else el . set ( property , event . detail . value ) ; } ; el1 . addEventListener ( property + '-changed' , forwardChange . bind ( null , el2 ) ) ; el2 . addEventListener ( property + '-changed' , forwardChange . bind ( null , el1 ) ) ; }
Data-binds two Polymer properties using the property-changed events and
 set/notifyPath API.
Data - binds two Polymer properties using the property - changed events and set / notifyPath API .
// Add the listeners symmetrically. Polymer will prevent recursion.